Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Prepare the build system within the extensible SDK |
| 4 | |
| 5 | target_sdk_dir="$1" |
| 6 | sdk_targets="$2" |
| 7 | |
| 8 | # Avoid actually building images during this phase, but still |
| 9 | # ensure all dependencies are extracted from sstate |
| 10 | # This is a hack, to be sure, but we really don't need to do this here |
| 11 | for sdktarget in $sdk_targets ; do |
| 12 | bbappend=`recipetool newappend $target_sdk_dir/workspace $sdktarget` |
| 13 | printf 'python do_rootfs_forcevariable () {\n bb.utils.mkdirhier(d.getVar("IMAGE_ROOTFS", True))\n}\n' > $bbappend |
| 14 | printf 'python do_bootimg () {\n pass\n}\n' >> $bbappend |
| 15 | printf 'python do_bootdirectdisk () {\n pass\n}\n' >> $bbappend |
| 16 | printf 'python do_vmimg () {\n pass\n}\n' >> $bbappend |
| 17 | printf "Created bbappend %s\n" "$bbappend" |
| 18 | done |
| 19 | bitbake $sdk_targets || exit 1 |
| 20 | rm -rf $target_sdk_dir/workspace/appends/* |