diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/hob | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/scripts/hob b/scripts/hob index 19930bab32..bb88a76135 100755 --- a/scripts/hob +++ b/scripts/hob | |||
@@ -1,18 +1,28 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | if ! (test -r "$BUILDDIR/conf/hob.local.conf"); then | 2 | if ! (test -r "$BUILDDIR/conf/hob-pre.conf"); then |
3 | cat <<EOM | 3 | cat <<EOM |
4 | You had no conf/hob.local.conf file. An initial version of this configuration | 4 | You had no conf/hob-pre.conf file. An initial version of this configuration |
5 | file has therefore been created for you. This file will be used to store any | 5 | file has therefore been created for you. This file will be used to store |
6 | configuration values you set in hob. | ||
7 | |||
8 | EOM | ||
9 | touch conf/hob-pre.conf | ||
10 | fi | ||
11 | |||
12 | if ! (test -r "$BUILDDIR/conf/hob-post.conf"); then | ||
13 | cat <<EOM | ||
14 | You had no conf/hob-post.conf file. An initial version of this configuration | ||
15 | file has therefore been created for you. This file will be used to store | ||
6 | configuration values you set in hob. | 16 | configuration values you set in hob. |
7 | 17 | ||
8 | EOM | 18 | EOM |
9 | (cat <<EOF | 19 | (cat <<EOF |
10 | INHERIT += "image_types" | 20 | INHERIT += "image_types" |
11 | EOF | 21 | EOF |
12 | ) > conf/hob.local.conf | 22 | ) > conf/hob-post.conf |
13 | fi | 23 | fi |
14 | 24 | ||
15 | bitbake -R conf/hob.local.conf -t xmlrpc -u hob | 25 | bitbake -r conf/hob-pre.conf -R conf/hob-post.conf -u hob |
16 | 26 | ||
17 | ret=$? | 27 | ret=$? |
18 | exit $ret | 28 | exit $ret |