[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCHv5 05/46] arch/arm: Rename MARCH_* of arm32 to MARCH_ARM32_*
From: Wei Chen <Wei.Chen@xxxxxxx> Add architecture name to the processor macros. This will avoid the name conflict of different architectures. For instance, both Arm32 and Arm64 have "generic" option for select processors. If we don't add architecture name to the macros. Both of these "generic" option will generate a macro: MARCH_GENERIC. In this case, the build scripts can't distinguish between Arm32/generic and Arm64/generic Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> --- arch/arm/arm/Config.uk | 6 +++--- arch/arm/arm/Makefile.uk | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/arm/Config.uk b/arch/arm/arm/Config.uk index 426c113..8b4deab 100644 --- a/arch/arm/arm/Config.uk +++ b/arch/arm/arm/Config.uk @@ -1,15 +1,15 @@ choice prompt "Processor Optimization" - default MARCH_CORTEXA7 + default MARCH_ARM32_CORTEXA7 help Optimize the code for selected target processor -config MARCH_CORTEXA7 +config MARCH_ARM32_CORTEXA7 bool "Generic Cortex A7" help Compile for Cortex-A7 CPUs, no hardware FPU support -config MARCH_A20NEON +config MARCH_ARM32_A20NEON bool "Cortex A7: AllWinner A20" help Compile for AllWinner A20 (Cortex-A7) CPUs diff --git a/arch/arm/arm/Makefile.uk b/arch/arm/arm/Makefile.uk index b746f70..a84f2b8 100644 --- a/arch/arm/arm/Makefile.uk +++ b/arch/arm/arm/Makefile.uk @@ -7,10 +7,10 @@ CXXFLAGS += -marm -fms-extensions #-march=armv7-a -CFLAGS-$(CONFIG_MARCH_A20NEON) += -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=vfpv4-d16 -mfpu=neon-vfpv4 -funsafe-math-optimizations -CXXFLAGS-$(CONFIG_MARCH_A20NEON) += -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=vfpv4-d16 -mfpu=neon-vfpv4 -funsafe-math-optimizations -CFLAGS-$(CONFIG_MARCH_CORTEXA7) += -mcpu=cortex-a7 -mtune=cortex-a7 -CXXFLAGS-$(CONFIG_MARCH_CORTEXA7) += -mcpu=cortex-a7 -mtune=cortex-a +CFLAGS-$(CONFIG_MARCH_ARM32_A20NEON) += -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=vfpv4-d16 -mfpu=neon-vfpv4 -funsafe-math-optimizations +CXXFLAGS-$(CONFIG_MARCH_ARM32_A20NEON) += -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=vfpv4-d16 -mfpu=neon-vfpv4 -funsafe-math-optimizations +CFLAGS-$(CONFIG_MARCH_ARM32_CORTEXA7) += -mcpu=cortex-a7 -mtune=cortex-a7 +CXXFLAGS-$(CONFIG_MARCH_ARM32_CORTEXA7) += -mcpu=cortex-a7 -mtune=cortex-a $(eval $(call addlib,libarmmath)) LIBARMMATH_SRCS-$(CONFIG_ARCH_ARM_32) += $(CONFIG_UK_BASE)/arch/arm/divsi3.S -- 2.17.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |