mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
hob now uses both a pre and post file, update the wrapper script to generate and use both of these. Addresses [YOCTO #1281] (From OE-Core rev: b68f90b765e7c8923033ee7ff7746f39a2e91ff7) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
705 B
Bash
Executable File
29 lines
705 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if ! (test -r "$BUILDDIR/conf/hob-pre.conf"); then
|
|
cat <<EOM
|
|
You had no conf/hob-pre.conf file. An initial version of this configuration
|
|
file has therefore been created for you. This file will be used to store
|
|
configuration values you set in hob.
|
|
|
|
EOM
|
|
touch conf/hob-pre.conf
|
|
fi
|
|
|
|
if ! (test -r "$BUILDDIR/conf/hob-post.conf"); then
|
|
cat <<EOM
|
|
You had no conf/hob-post.conf file. An initial version of this configuration
|
|
file has therefore been created for you. This file will be used to store
|
|
configuration values you set in hob.
|
|
|
|
EOM
|
|
(cat <<EOF
|
|
INHERIT += "image_types"
|
|
EOF
|
|
) > conf/hob-post.conf
|
|
fi
|
|
|
|
bitbake -r conf/hob-pre.conf -R conf/hob-post.conf -u hob
|
|
|
|
ret=$?
|
|
exit $ret
|