diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-04-12 11:04:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-19 17:34:17 +0100 |
commit | 5ec2132cdf6c66d3eac37d657fc21c2beef6fa1b (patch) | |
tree | 1a69de814f9bc2fa27bffaca72ae8db983faf9b9 /scripts | |
parent | 97098f307df6e524497dea92e8a453f60e67cb81 (diff) | |
download | poky-5ec2132cdf6c66d3eac37d657fc21c2beef6fa1b.tar.gz |
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.
(From OE-Core rev: 23335d6c7b62899d2d7336d0c07d7ee2aa6c4ed1)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/hob | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/hob b/scripts/hob new file mode 100755 index 0000000000..19930bab32 --- /dev/null +++ b/scripts/hob | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | if ! (test -r "$BUILDDIR/conf/hob.local.conf"); then | ||
3 | cat <<EOM | ||
4 | You had no conf/hob.local.conf file. An initial version of this configuration | ||
5 | file has therefore been created for you. This file will be used to store any | ||
6 | configuration values you set in hob. | ||
7 | |||
8 | EOM | ||
9 | (cat <<EOF | ||
10 | INHERIT += "image_types" | ||
11 | EOF | ||
12 | ) > conf/hob.local.conf | ||
13 | fi | ||
14 | |||
15 | bitbake -R conf/hob.local.conf -t xmlrpc -u hob | ||
16 | |||
17 | ret=$? | ||
18 | exit $ret | ||