diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-06-17 12:11:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-17 16:09:10 +0100 |
commit | baff2630b3c883c37bcc33d984453e14a0d4a206 (patch) | |
tree | 10c4d0775ddbb479a21888343faa777a8aa654ac /bitbake/bin | |
parent | f5cadbe005303a9fe022aa20a5aa12630b849b54 (diff) | |
download | ast2050-yocto-poky-baff2630b3c883c37bcc33d984453e14a0d4a206.zip ast2050-yocto-poky-baff2630b3c883c37bcc33d984453e14a0d4a206.tar.gz |
bitbake: bitbake: read BBSERVER environement for remote server
This change allows bitbake to connect to a remote server
by reading the BBSERVER environment variable and effecting
the config. Basically a shortcut to the command line parameters.
(Bitbake rev: 81929f86c57ed0a4ad0cda7aaa820fceabaa61e9)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 0d6b3ae..60c4b96 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -204,6 +204,12 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): action = "store_true", dest = "observe_only", default = False) options, targets = parser.parse_args(sys.argv) + + # some environmental variables set also configuration options + if "BBSERVER" in os.environ: + options.servertype = "xmlrpc" + options.remote_server = os.environ["BBSERVER"] + return options, targets[1:] @@ -268,6 +274,9 @@ def main(): sys.exit("FATAL: If '--server-only' is defined, we must set the servertype as 'xmlrpc'.\n") if not configParams.bind: sys.exit("FATAL: The '--server-only' option requires a name/address to bind to with the -B option.\n") + if configParams.remote_server: + sys.exit("FATAL: The '--server-only' option conflicts with the '--remote-server' option. %s\n" % + ("Please check your BBSERVER environment" if "BBSERVER" in os.environ else "" )) if configParams.bind and configParams.servertype != "xmlrpc": sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n") |