mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:30:52 +07:00
bc91c9f313
on building an uImage, I get: $ make uImage CHK include/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h Kernel: arch/arm/boot/Image is ready SHIPPED arch/arm/boot/compressed/lib1funcs.S AS arch/arm/boot/compressed/lib1funcs.o LD arch/arm/boot/compressed/vmlinux OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready UIMAGE arch/arm/boot/uImage "mkimage" command not found - U-Boot images will not be built Image arch/arm/boot/uImage is ready $ I.e. it says: "uImage is ready" even though the uImage file doesn't exist because mkimage is missing. I propose the attached patch. Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Michal Marek <mmarek@suse.cz>
20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Build U-Boot image when `mkimage' tool is available.
|
|
#
|
|
|
|
MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
|
|
|
|
if [ -z "${MKIMAGE}" ]; then
|
|
MKIMAGE=$(type -path mkimage)
|
|
if [ -z "${MKIMAGE}" ]; then
|
|
# Doesn't exist
|
|
echo '"mkimage" command not found - U-Boot images will not be built' >&2
|
|
exit 1;
|
|
fi
|
|
fi
|
|
|
|
# Call "mkimage" to create U-Boot image
|
|
${MKIMAGE} "$@"
|