linux: abort building arm64 uImage if KERNEL_UIMAGE_LOADADDR or KERNEL_UIMAGE_ENTRYADDR is not set

If either of these values is not set, resulting uImage
will not load properly. Abort if these are not set.
This commit is contained in:
kszaq 2019-05-03 20:54:28 +02:00 committed by MilhouseVH
parent 69f3db483e
commit 4ef5e73ae6

View File

@ -212,6 +212,9 @@ make_target() {
# arm64 target does not support creating uImage.
# Build Image first, then wrap it using u-boot's mkimage.
if [[ "$TARGET_KERNEL_ARCH" == "arm64" && "$KERNEL_TARGET" == uImage* ]]; then
if [ -z "$KERNEL_UIMAGE_LOADADDR" -o -z "$KERNEL_UIMAGE_ENTRYADDR" ]; then
die "ERROR: KERNEL_UIMAGE_LOADADDR and KERNEL_UIMAGE_ENTRYADDR have to be set to build uImage - aborting"
fi
KERNEL_UIMAGE_TARGET="$KERNEL_TARGET"
KERNEL_TARGET="${KERNEL_TARGET/uImage/Image}"
fi