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:
Grant Grundler 2011-06-22 10:24:42 -07:00
parent 119677f3b9
commit 7c4328a65f

View File

@ -71,10 +71,16 @@ echo "Generating netboot kernel vmlinux.uimg"
cp "${SYSROOT}/boot/vmlinux.uimg" "netboot" cp "${SYSROOT}/boot/vmlinux.uimg" "netboot"
# Get netboot firmware. # Get netboot firmware.
echo "Generating netboot firmware"
# TODO(nsanders): Set default IP here when userspace # TODO(nsanders): Set default IP here when userspace
# env modification is available. # 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. # Prepare to mount rootfs.
umount_loop() { umount_loop() {