[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCHv5 06/46] arch: Add arm64 architecture config to menuconfig
From: Wei Chen <Wei.Chen@xxxxxxx> Add the Arm64 entry for menuconfig. As different silicon vendors may have different 64-bit Armv8 SoCs. If we want to add them to Config, it will be a large list. So we only provide Arm's cortex A53~A75 CPUs for "Processor Optimization" If we use MARCH_ as the prefix for Arm64 CPUs as x86, when we select "generic", the MARCH_GENERIC will conflict with x86's MARCH_GENERIC. So, we use MARCH_ARM64_ for Arm64 as the prefix. Current supported Arm64 CPU models: native, generic, cortex-a53, cortex-a57, cortex-a72, cortex-a73, cortex-a55 and cortex-a75. Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> --- Config.uk | 2 +- arch/Arch.uk | 2 ++ arch/Config.uk | 6 +++++ arch/arm/arm64/Config.uk | 48 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 arch/arm/arm64/Config.uk diff --git a/Config.uk b/Config.uk index 1bca2b0..158f096 100644 --- a/Config.uk +++ b/Config.uk @@ -65,7 +65,7 @@ config OPTIMIZE_SIZE endchoice comment "Hint: Specify a CPU type to get most benefits from performance optimization" - depends on OPTIMIZE_PERF && MARCH_X86_64_GENERIC + depends on OPTIMIZE_PERF && (MARCH_X86_64_GENERIC || MARCH_ARM64_GENERIC) config OPTIMIZE_DEADELIM bool "Drop unused functions and data" diff --git a/arch/Arch.uk b/arch/Arch.uk index f11308b..a8b3ca2 100644 --- a/arch/Arch.uk +++ b/arch/Arch.uk @@ -1,6 +1,8 @@ # Selects architecture according to .config ifeq ($(CONFIG_ARCH_X86_64),y) CONFIG_UK_ARCH := x86_64 +else ifeq ($(CONFIG_ARCH_ARM_64),y) +CONFIG_UK_ARCH := arm64 else ifeq ($(CONFIG_ARCH_ARM_32),y) CONFIG_UK_ARCH := arm endif diff --git a/arch/Config.uk b/arch/Config.uk index 9236273..119903d 100644 --- a/arch/Config.uk +++ b/arch/Config.uk @@ -1,12 +1,15 @@ choice prompt "Architecture" default ARCH_ARM_32 if (UK_ARCH = "arm") + default ARCH_ARM_64 if (UK_ARCH = "arm64") default ARCH_X86_64 help Select the target CPU architecture. config ARCH_X86_64 bool "x86 compatible (64 bits)" +config ARCH_ARM_64 + bool "Armv8 compatible (64 bits)" config ARCH_ARM_32 bool "ARMv7 compatible (32 bits)" @@ -18,3 +21,6 @@ endif if (ARCH_ARM_32) source "arch/arm/arm/Config.uk" endif +if (ARCH_ARM_64) + source "arch/arm/arm64/Config.uk" +endif diff --git a/arch/arm/arm64/Config.uk b/arch/arm/arm64/Config.uk new file mode 100644 index 0000000..7797516 --- /dev/null +++ b/arch/arm/arm64/Config.uk @@ -0,0 +1,48 @@ +choice + prompt "Processor Optimization" + default MARCH_ARM64_GENERIC + help + Optimize the code for selected target processor + +config MARCH_ARM64_NATIVE + bool "Auto-detect host CPU" + help + Optimize compilation to host CPU. Please note that this + option will fail in case of cross-compilation + +config MARCH_ARM64_GENERIC + bool "Generic Armv8 CPU" + help + Compile for Generic Armv8 compatible CPUs + +config MARCH_ARM64_CORTEXA53 + bool "Generic Armv8 Cortex A53" + help + Compile for Armv8 Cortex-A53 (and compatible) CPUs + +config MARCH_ARM64_CORTEXA57 + bool "Generic Armv8 Cortex A57" + help + Compile for Armv8 Cortex-A57 (and compatible) CPUs + +config MARCH_ARM64_CORTEXA72 + bool "Generic Armv8 Cortex A72" + help + Compile for Armv8 Cortex-A72 (and compatible) CPUs + +config MARCH_ARM64_CORTEXA73 + bool "Generic Armv8 Cortex A73" + help + Compile for Armv8 Cortex-A73 (and compatible) CPUs + +config MARCH_ARM64_CORTEXA55 + bool "Generic Armv8.2 Cortex A55" + help + Compile for Armv8.2 Cortex-A55 (and compatible) CPUs + +config MARCH_ARM64_CORTEXA75 + bool "Generic Armv8.2 Cortex A75" + help + Compile for Armv8.2 Cortex-A75 (and compatible) CPUs + +endchoice -- 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 |