aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-01-29 18:27:03 +0300
committerTom Rini <trini@konsulko.com>2022-02-03 12:15:33 -0500
commit22eb7ba80e8789867bb1a103e1aa61765d6b0865 (patch)
tree31851328bb9c47c5815daba9ac70e88d27194739
parentc1335e2ca5e3947a61d93c094fbb4a9be9afc4ff (diff)
downloadu-boot-22eb7ba80e8789867bb1a103e1aa61765d6b0865.zip
u-boot-22eb7ba80e8789867bb1a103e1aa61765d6b0865.tar.gz
u-boot-22eb7ba80e8789867bb1a103e1aa61765d6b0865.tar.bz2
armv8: spl: Fix build with LINUX_KERNEL_IMAGE_HEADER
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>
-rw-r--r--arch/arm/cpu/armv8/u-boot-spl.lds4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds
index 9edb662..730eb93 100644
--- a/arch/arm/cpu/armv8/u-boot-spl.lds
+++ b/arch/arm/cpu/armv8/u-boot-spl.lds
@@ -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
}