From 4e186596338af52bf720dcbbdd3a07b722cf9575 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 20 Mar 2015 15:13:05 +0200 Subject: bitbake: bin/bitbake: Create bitbake_main API Moved most of functionality of bin/bitbake to lib/bb/main.py to be able to call bitbake from python code. (Bitbake rev: d377f7f88d73f4e5d2dffef03d6acee809827ac6) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/bb/tinfoil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/tinfoil.py') diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 6bcbd47ab3..8fc9be3039 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py @@ -90,7 +90,7 @@ class TinfoilConfigParameters(ConfigParameters): self.initial_options = options super(TinfoilConfigParameters, self).__init__() - def parseCommandLine(self): + def parseCommandLine(self, argv=sys.argv): class DummyOptions: def __init__(self, initial_options): for key, val in initial_options.items(): -- cgit v1.2.3-54-g00ecf