]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: spl: Fix build with LINUX_KERNEL_IMAGE_HEADER
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Sat, 29 Jan 2022 15:27:03 +0000 (18:27 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 3 Feb 2022 17:15:33 +0000 (12:15 -0500)
Setting LINUX_KERNEL_IMAGE_HEADER=y attempts to include an ARM64 Linux
kernel image header at the start of both U-Boot proper and SPL binaries.
However, some definitions that the image header uses are not included by
the SPL linker script, resulting in a build error. Include them the way
they are included in U-Boot proper's linker script to fix the error.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
arch/arm/cpu/armv8/u-boot-spl.lds

index 9edb662b094a7742a285d180b6e95a9478efac8a..730eb93dbc3bc355f884d67a186787b23b7008ed 100644 (file)
@@ -84,4 +84,8 @@ SECTIONS
        /DISCARD/ : { *(.plt*) }
        /DISCARD/ : { *(.interp*) }
        /DISCARD/ : { *(.gnu*) }
+
+#ifdef CONFIG_LINUX_KERNEL_IMAGE_HEADER
+#include "linux-kernel-image-header-vars.h"
+#endif
 }