Skip to contentSkip to conversation

arm: socfpga: Correct how we set BOOTFILE

PATCH In review Tom Rini 1 participant 3 messages Aug 11, 2025 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: socfpga: Correct how we set BOOTFILE

In order to set the BOOTFILE symbol we first need to have USE_BOOTFILE be set, or some of the logic might not work as expected later on when building. Second, defaults like this belong with the symbol itself.

Fixes da595d236b97 ("include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile")
---
 arch/arm/Kconfig | 4 +---
 env/Kconfig      | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/Kconfig +1 -3
index e7257ff3e03a..40368abc297e 100644
@@ -22,9 +22,6 @@ config ARM64_CRC32
 	  not be present on all ARMv8.0, but is always present on ARMv8.1 and
 	  newer.
 
-config BOOTFILE
-	default kernel.itb if SPL_ATF && TARGET_SOCFPGA_SOC64
-
 config COUNTER_FREQUENCY
 	int "Timer clock frequency"
 	depends on ARM64 || CPU_V7A
@@ -1178,6 +1175,7 @@ config ARCH_SOCFPGA
 	select SYSRESET_SOCFPGA_SOC64 if !TARGET_SOCFPGA_AGILEX5 && \
            TARGET_SOCFPGA_SOC64
 	select SYSRESET_PSCI if TARGET_SOCFPGA_AGILEX5
+	select USE_BOOTFILE if SPL_ATF && TARGET_SOCFPGA_SOC64
 	imply CMD_DM
 	imply CMD_MTDPARTS
 	imply CRC32_VERIFY
env/Kconfig +1 -0
index c667e8f2da19..1df7ebd547e6 100644
@@ -957,6 +957,7 @@ config USE_BOOTFILE
 
 config BOOTFILE
 	string "'bootfile' environment variable value"
+	default kernel.itb if SPL_ATF && TARGET_SOCFPGA_SOC64
 	depends on USE_BOOTFILE
 	help
 	  The value to set the "bootfile" variable to.
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

In order to set the BOOTFILE symbol we first need to have USE_BOOTFILE be set, or some of the logic might not work as expected later on when building. Second, defaults like this belong with the symbol itself.

Fixes da595d236b97 ("include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile")

I will be applying this shortly as I found this as part of doing the defconfig resync for -rc2 and saw a massive churn related to BOOTFILE in other defconfig files.

Signature · 1 line
Tom
author
#2 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

In order to set the BOOTFILE symbol we first need to have USE_BOOTFILE be set, or some of the logic might not work as expected later on when building. Second, defaults like this belong with the symbol itself.

Applied to u-boot/master, thanks!

[1/1] arm: socfpga: Correct how we set BOOTFILE

      commit: 6d3382fad32baa0c09d43b526c99ea75838b3ca8
Signature · 1 line
Tom