linux: Build $KERNEL_UBOOT_EXTRA_TARGET before kernel image

When there is a need to build the kernel with appended device tree for compatibility with older bootloaders,
$KERNEL_UBOOT_EXTRA_TARGET, which usually is a list of device tree source files, needs to be built
before the kernel, making device tree binaries available for appending to the kernel image.
This commit is contained in:
Alex Deryskyba 2014-12-18 04:04:11 +01:00
parent 6996f84828
commit 8135438a36

View File

@ -140,14 +140,14 @@ make_target() {
$SCRIPTS/install initramfs
)
LDFLAGS="" make $KERNEL_IMAGE $KERNEL_MAKE_EXTRACMD
if [ "$BOOTLOADER" = "u-boot" -a -n "$KERNEL_UBOOT_EXTRA_TARGET" ]; then
for extra_target in "$KERNEL_UBOOT_EXTRA_TARGET"; do
LDFLAGS="" make $extra_target
done
fi
LDFLAGS="" make $KERNEL_IMAGE $KERNEL_MAKE_EXTRACMD
if [ "$PERF_SUPPORT" = "yes" -a "$DEVTOOLS" = "yes" ]; then
( cd tools/perf