From 83f5577d8d8a5383642cd00a75ec56211596ecd2 Mon Sep 17 00:00:00 2001 From: AJ Bagwell Date: Tue, 5 Apr 2022 09:40:12 +0100 Subject: [PATCH] linux-raspberrypi: add UBOOT_ENTRYPOINT to match LOADADDR This is so that uboot fit images have an entry point that matches the LOADADDR that everything is expecting. Signed-off-by: AJ Bagwell --- recipes-kernel/linux/linux-raspberrypi.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index f790c3c..6362a73 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -34,4 +34,7 @@ KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", # A LOADADDR is needed when building a uImage format kernel. This value is not # set by default in rpi-4.8.y and later branches so we need to provide it # manually. This value unused if KERNEL_IMAGETYPE is not uImage. -KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000" +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" + +UBOOT_ENTRYPOINT = "0x00008000" +UBOOT_LOADADDRESS = "0x00008000"