summaryrefslogtreecommitdiff
path: root/scripts/hob
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-04-12 11:04:06 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-19 17:33:56 +0100
commit23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1 (patch)
tree9addff0f2fed10a8048bc424c221f2cebb5939a2 /scripts/hob
parente18563aa308b5dfc17a62cbb8e3fc39688fa40bc (diff)
downloadopenembedded-core-23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1.tar.gz
openembedded-core-23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1.tar.bz2
openembedded-core-23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1.tar.xz
openembedded-core-23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1.zip
scripts/hob: wrapper script to run hob gui with a UI specific config file
This ensures any configuration changes made in the GUI are only set when using hob. The default hob.local.conf is generated with a line which adds image_types to INHERITS so that the GUI can introspect the available FSTYPES. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts/hob')
-rwxr-xr-xscripts/hob18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/hob b/scripts/hob
new file mode 100755
index 000000000..19930bab3
--- /dev/null
+++ b/scripts/hob
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+if ! (test -r "$BUILDDIR/conf/hob.local.conf"); then
+ cat <<EOM
+You had no conf/hob.local.conf file. An initial version of this configuration
+file has therefore been created for you. This file will be used to store any
+configuration values you set in hob.
+
+EOM
+(cat <<EOF
+INHERIT += "image_types"
+EOF
+) > conf/hob.local.conf
+fi
+
+bitbake -R conf/hob.local.conf -t xmlrpc -u hob
+
+ret=$?
+exit $ret