mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly
@ 2025-09-04  8:16 Ahmad Fatoum
  2025-09-09  9:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-09-04  8:16 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We currently lack a way to build a barebox EFI payload on ARM without
enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global
effect and adds EFI stubs to all enabled board, an EFI subarchitecture
doesn't fit into our current model.

Instead, let's make it possible to enable either CONFIG_CPU_V8 or
CONFIG_CPU_V7 directly.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/cpu/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
index e61bcadc8c35..fe0d1e470578 100644
--- a/arch/arm/cpu/Kconfig
+++ b/arch/arm/cpu/Kconfig
@@ -79,12 +79,15 @@ config CPU_V6
 
 # ARMv7
 config CPU_V7
-	bool
+	bool "Generic ARMv7 support"
+	depends on 32BIT
 	select CPU_32v7
 
 # ARMv8
 config CPU_V8
-	bool
+	bool "Generic ARMv8 support"
+	default y
+	depends on 64BIT
 	select CPU_64v8
 	select ARM_EXCEPTIONS
 	select GENERIC_FIND_NEXT_BIT
-- 
2.47.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly
  2025-09-04  8:16 [PATCH] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly Ahmad Fatoum
@ 2025-09-09  9:40 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-09-09  9:40 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Thu, 04 Sep 2025 10:16:26 +0200, Ahmad Fatoum wrote:
> We currently lack a way to build a barebox EFI payload on ARM without
> enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global
> effect and adds EFI stubs to all enabled board, an EFI subarchitecture
> doesn't fit into our current model.
> 
> Instead, let's make it possible to enable either CONFIG_CPU_V8 or
> CONFIG_CPU_V7 directly.
> 
> [...]

Applied, thanks!

[1/1] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly
      https://git.pengutronix.de/cgit/barebox/commit/?id=d92583d5bab2 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-09 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-04  8:16 [PATCH] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly Ahmad Fatoum
2025-09-09  9:40 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox