From 4f376e6a00eb8c03bfa2a3dc667b07dff00ccb65 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 16 Mar 2026 00:52:33 +0100 Subject: arm64: renesas: Separate 64bit only code Conditionally compile code that is only compatible with 64bit ARMv8 on 64bit R-Car Gen3/4/5 SoCs. Protect such code with CONFIG_ARM64. This split is implemented in preparation for build of Cortex-M33 version of R-Car Gen5 U-Boot for its RSIPM core. Signed-off-by: Marek Vasut --- arch/arm/mach-renesas/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-renesas/Makefile b/arch/arm/mach-renesas/Makefile index c0454fffa48..652a392ba6f 100644 --- a/arch/arm/mach-renesas/Makefile +++ b/arch/arm/mach-renesas/Makefile @@ -9,10 +9,15 @@ obj-y += emac.o obj-$(CONFIG_DISPLAY_BOARDINFO) += board.o obj-$(CONFIG_TMU_TIMER) += ../../sh/lib/time.o obj-$(CONFIG_RCAR_GEN2) += lowlevel_init_ca15.o cpu_info-rcar.o +obj-$(CONFIG_RCAR_GEN3) += cpu_info-rcar.o +obj-$(CONFIG_RCAR_GEN4) += cpu_info-rcar.o +obj-$(CONFIG_RCAR_GEN5) += cpu_info-rcar.o +ifneq ($(CONFIG_ARM64),) obj-$(CONFIG_RCAR_64) += lowlevel_init_gen3.o -obj-$(CONFIG_RCAR_GEN3) += cpu_info-rcar.o memmap-gen3.o -obj-$(CONFIG_RCAR_GEN4) += cpu_info-rcar.o memmap-gen3.o -obj-$(CONFIG_RCAR_GEN5) += cpu_info-rcar.o memmap-gen3.o +obj-$(CONFIG_RCAR_GEN3) += memmap-gen3.o +obj-$(CONFIG_RCAR_GEN4) += memmap-gen3.o +obj-$(CONFIG_RCAR_GEN5) += memmap-gen3.o +endif obj-$(CONFIG_RZ_G2) += cpu_info-rzg.o obj-$(CONFIG_RZG2L) += cpu_info-rzg2l.o memmap-rzg2l.o -- cgit v1.2.3