aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-02 10:17:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-05 20:16:07 +0100
commit126267c545ede65042959d134ea75c0345577747 (patch)
tree595e6c74409c4e2b6a0c8e7f24cb19286916353b /lib
parent02ab0e11d8dd42f5ca440b3d8d2073e23f55113a (diff)
downloadbitbake-126267c545ede65042959d134ea75c0345577747.tar.gz
hob: reflect defaultsetup being default distro
If no value is set for DISTRO the defaultsetup policy is used, reflect this in the UI by having defaultsetup selected in the Distribution combo when no other DISTRO is set. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/hob.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index c1302e51f..022d1b638 100644
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -992,6 +992,8 @@ def main (server, eventHandler):
if not sdk_mach:
sdk_mach = server.runCommand(["getVariable", "SDK_ARCH"])
distro = server.runCommand(["getVariable", "DISTRO"])
+ if not distro:
+ distro = "defaultsetup"
bbthread = server.runCommand(["getVariable", "BB_NUMBER_THREADS"])
if not bbthread:
bbthread = 1