mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
populate_sdk_ext: Use new --setscene-only option to bitbake instead of workarounds
Rather than horrible workarounds, use the new --setscene-only option of bitbake to pre-populate the SDK structures. (From OE-Core rev: 38237b7ac53c416f85c4a70a61acafc3404c8b5f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -5,16 +5,4 @@
|
||||
target_sdk_dir="$1"
|
||||
sdk_targets="$2"
|
||||
|
||||
# Avoid actually building images during this phase, but still
|
||||
# ensure all dependencies are extracted from sstate
|
||||
# This is a hack, to be sure, but we really don't need to do this here
|
||||
for sdktarget in $sdk_targets ; do
|
||||
bbappend=`recipetool newappend $target_sdk_dir/workspace $sdktarget`
|
||||
printf 'python do_rootfs_forcevariable () {\n bb.utils.mkdirhier(d.getVar("IMAGE_ROOTFS", True))\n}\n' > $bbappend
|
||||
printf 'python do_bootimg () {\n pass\n}\n' >> $bbappend
|
||||
printf 'python do_bootdirectdisk () {\n pass\n}\n' >> $bbappend
|
||||
printf 'python do_vmimg () {\n pass\n}\n' >> $bbappend
|
||||
printf "Created bbappend %s\n" "$bbappend"
|
||||
done
|
||||
bitbake $sdk_targets || exit 1
|
||||
rm -rf $target_sdk_dir/workspace/appends/*
|
||||
bitbake $sdk_targets --setscene-only || exit 1
|
||||
|
||||
Reference in New Issue
Block a user