]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/hob: wrapper script to run hob gui with a UI specific config file
authorJoshua Lock <josh@linux.intel.com>
Tue, 12 Apr 2011 18:04:06 +0000 (11:04 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jul 2011 16:33:56 +0000 (17:33 +0100)
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>
scripts/hob [new file with mode: 0755]

diff --git a/scripts/hob b/scripts/hob
new file mode 100755 (executable)
index 0000000..19930ba
--- /dev/null
@@ -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