mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
Fix ARM generic build: no u-boot/legacy_image.bin built
Additional fix needed on top of nsanders commit from yesterday: http://gerrit.chromium.org/gerrit/#change,2028 ARM generic doesn't build chromeos-u-boot and thus has no u-boot directory in the $SYSROOT. BUG=chromium-os:16833 TEST=archive_build.sh Change-Id: Ic8422419779dca1965c6832a4a0bd73078945e69 Signed-off-by: Grant Grundler <grundler@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/3001 Reviewed-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Nick Sanders <nsanders@chromium.org>
This commit is contained in:
parent
119677f3b9
commit
7c4328a65f
@ -71,10 +71,16 @@ echo "Generating netboot kernel vmlinux.uimg"
|
||||
cp "${SYSROOT}/boot/vmlinux.uimg" "netboot"
|
||||
|
||||
# Get netboot firmware.
|
||||
echo "Generating netboot firmware"
|
||||
# TODO(nsanders): Set default IP here when userspace
|
||||
# env modification is available.
|
||||
cp "${SYSROOT}/u-boot/legacy_image.bin" "netboot"
|
||||
# TODO(nsanders): ARM generic doesn't build chromeos-u-boot package.
|
||||
# When ARM generic goes away, delete the test.
|
||||
if [ -r "${SYSROOT}/u-boot/legacy_image.bin" ]
|
||||
echo "Copying netboot firmware legacy_image.bin"
|
||||
cp "${SYSROOT}/u-boot/legacy_image.bin" "netboot"
|
||||
else
|
||||
echo "Skipping: ${SYSROOT}/u-boot/legacy_image.bin firmware not present?"
|
||||
fi
|
||||
|
||||
# Prepare to mount rootfs.
|
||||
umount_loop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user