clean-up arch config
cover clean-up arch config
Thomas Monjalon (2):
config: remove obsolete machine descriptions
config: add a common x86 flag
config/common_bsdapp | 20 +++++--------------- config/common_linuxapp | 20 +++++--------------- config/defconfig_i686-native-linuxapp-gcc | 1 + config/defconfig_i686-native-linuxapp-icc | 1 + config/defconfig_x86_64-native-bsdapp-clang | 1 + config/defconfig_x86_64-native-bsdapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-clang | 1 + config/defconfig_x86_64-native-linuxapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-icc | 1 + config/defconfig_x86_x32-native-linuxapp-gcc | 1 + mk/target/generic/rte.vars.mk | 8 -------- 11 files changed, 18 insertions(+), 38 deletions(-)
Signature · 1 line
2.7.0
PATCH 1/2 config: remove obsolete machine descriptions
More and more machines and architectures are added without keeping the lists up-to-date.
Replace the lists with a pointer to the reference directory.
The same kind of pointer is used for the supported compilers and environments.
--- config/common_bsdapp | 19 ++++--------------- config/common_linuxapp | 19 ++++--------------- mk/target/generic/rte.vars.mk | 8 -------- 3 files changed, 8 insertions(+), 38 deletions(-)
config/common_bsdapp +4 -15
@@ -32,38 +32,27 @@ # # define executive environment -# -# CONFIG_RTE_EXEC_ENV can be linuxapp, bsdapp +# RTE_EXEC_ENV values are the directories in mk/exec-env/ # CONFIG_RTE_EXEC_ENV="bsdapp" CONFIG_RTE_EXEC_ENV_BSDAPP=y ## ## machine can define specific variables or action for a specific board -## RTE_MACHINE can be: -## default nothing specific -## native current machine -## atm Intel® Atom™ microarchitecture -## nhm Intel® microarchitecture code name Nehalem -## wsm Intel® microarchitecture code name Westmere -## snb Intel® microarchitecture code name Sandy Bridge -## ivb Intel® microarchitecture code name Ivy Bridge -## -## Note: if your compiler does not support the relevant -march options, -## it will be compiled with whatever latest processor the compiler supports! +## RTE_MACHINE values are the directories in mk/machine/ ## #CONFIG_RTE_MACHINE="native" # ## ## define the architecture we compile for. -## CONFIG_RTE_ARCH can be i686, x86_64, x86_64_32 +## RTE_ARCH values are the directories in mk/arch/ ## #CONFIG_RTE_ARCH="x86_64" #CONFIG_RTE_ARCH_X86_64=y # ## ## The compiler we use. -## Can be gcc, icc or clang. +## RTE_TOOLCHAIN values are the directories in mk/toolchain/ ## #CONFIG_RTE_TOOLCHAIN="gcc" #CONFIG_RTE_TOOLCHAIN_GCC=y
config/common_linuxapp +4 -15
@@ -32,38 +32,27 @@ # # define executive environment -# -# CONFIG_RTE_EXEC_ENV can be linuxapp, bsdapp +# RTE_EXEC_ENV values are the directories in mk/exec-env/ # CONFIG_RTE_EXEC_ENV="linuxapp" CONFIG_RTE_EXEC_ENV_LINUXAPP=y ## ## machine can define specific variables or action for a specific board -## RTE_MACHINE can be: -## default nothing specific -## native current machine -## atm Intel® Atom™ microarchitecture -## nhm Intel® microarchitecture code name Nehalem -## wsm Intel® microarchitecture code name Westmere -## snb Intel® microarchitecture code name Sandy Bridge -## ivb Intel® microarchitecture code name Ivy Bridge -## -## Note: if your compiler does not support the relevant -march options, -## it will be compiled with whatever latest processor the compiler supports! +## RTE_MACHINE values are the directories in mk/machine/ ## #CONFIG_RTE_MACHINE="native" # ## ## define the architecture we compile for. -## CONFIG_RTE_ARCH can be i686, x86_64, x86_64_32 +## RTE_ARCH values are the directories in mk/arch/ ## #CONFIG_RTE_ARCH="x86_64" #CONFIG_RTE_ARCH_X86_64=y # ## ## The compiler we use. -## Can be gcc, icc or clang. +## RTE_TOOLCHAIN values are the directories in mk/toolchain/ ## #CONFIG_RTE_TOOLCHAIN="gcc" #CONFIG_RTE_TOOLCHAIN_GCC=y
mk/target/generic/rte.vars.mk +0 -8
@@ -50,8 +50,6 @@ # - can define CPU_ASFLAGS variable (overriden by cmdline value) that # overrides the one defined in arch. # -# examples for RTE_MACHINE: default, pc, bensley, tylesburg, ... -# include $(RTE_SDK)/mk/machine/$(RTE_MACHINE)/rte.vars.mk #
@@ -69,8 +67,6 @@ include $(RTE_SDK)/mk/machine/$(RTE_MACHINE)/rte.vars.mk # define in machine .mk) # - may override any previously defined variable # -# examples for RTE_ARCH: i686, x86_64 -# include $(RTE_SDK)/mk/arch/$(RTE_ARCH)/rte.vars.mk #
@@ -82,8 +78,6 @@ include $(RTE_SDK)/mk/arch/$(RTE_ARCH)/rte.vars.mk # - define TOOLCHAIN_ASFLAGS variable (overriden by cmdline value) # - may override any previously defined variable # -# examples for RTE_TOOLCHAIN: gcc, icc -# include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.vars.mk #
@@ -94,8 +88,6 @@ include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.vars.mk # - define EXECENV_ASFLAGS variable (overriden by cmdline) # - may override any previously defined variable # -# examples for RTE_EXEC_ENV: linuxapp, bsdapp -# include $(RTE_SDK)/mk/exec-env/$(RTE_EXEC_ENV)/rte.vars.mk # Don't set CFLAGS/LDFLAGS flags for kernel module, all flags are
Signature · 1 line
2.7.0
PATCH 2/2 config: add a common x86 flag
In reply to Thomas MonjalonIntel Architecture (IA), also called x86, is declined in
- i686
- x86_x32
- x86_64
The code common to all of these architectures can now be guarded by a single flag RTE_ARCH_X86.
--- config/common_bsdapp | 1 + config/common_linuxapp | 1 + config/defconfig_i686-native-linuxapp-gcc | 1 + config/defconfig_i686-native-linuxapp-icc | 1 + config/defconfig_x86_64-native-bsdapp-clang | 1 + config/defconfig_x86_64-native-bsdapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-clang | 1 + config/defconfig_x86_64-native-linuxapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-icc | 1 + config/defconfig_x86_x32-native-linuxapp-gcc | 1 + 10 files changed, 10 insertions(+)
config/common_bsdapp +1 -0
@@ -49,6 +49,7 @@ CONFIG_RTE_EXEC_ENV_BSDAPP=y ## #CONFIG_RTE_ARCH="x86_64" #CONFIG_RTE_ARCH_X86_64=y +#CONFIG_RTE_ARCH_X86=y # ## ## The compiler we use.
config/common_linuxapp +1 -0
@@ -49,6 +49,7 @@ CONFIG_RTE_EXEC_ENV_LINUXAPP=y ## #CONFIG_RTE_ARCH="x86_64" #CONFIG_RTE_ARCH_X86_64=y +#CONFIG_RTE_ARCH_X86=y # ## ## The compiler we use.
config/defconfig_i686-native-linuxapp-gcc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="i686" CONFIG_RTE_ARCH_I686=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_TOOLCHAIN="gcc" CONFIG_RTE_TOOLCHAIN_GCC=y
config/defconfig_i686-native-linuxapp-icc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="i686" CONFIG_RTE_ARCH_I686=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_TOOLCHAIN="icc" CONFIG_RTE_TOOLCHAIN_ICC=y
config/defconfig_x86_64-native-bsdapp-clang +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_64" CONFIG_RTE_ARCH_X86_64=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_TOOLCHAIN="clang" CONFIG_RTE_TOOLCHAIN_CLANG=y
config/defconfig_x86_64-native-bsdapp-gcc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_64" CONFIG_RTE_ARCH_X86_64=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_TOOLCHAIN="gcc" CONFIG_RTE_TOOLCHAIN_GCC=y
config/defconfig_x86_64-native-linuxapp-clang +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_64" CONFIG_RTE_ARCH_X86_64=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_ARCH_64=y CONFIG_RTE_TOOLCHAIN="clang"
config/defconfig_x86_64-native-linuxapp-gcc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_64" CONFIG_RTE_ARCH_X86_64=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_ARCH_64=y CONFIG_RTE_TOOLCHAIN="gcc"
config/defconfig_x86_64-native-linuxapp-icc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_64" CONFIG_RTE_ARCH_X86_64=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_ARCH_64=y CONFIG_RTE_TOOLCHAIN="icc"
config/defconfig_x86_x32-native-linuxapp-gcc +1 -0
@@ -36,6 +36,7 @@ CONFIG_RTE_MACHINE="native" CONFIG_RTE_ARCH="x86_x32" CONFIG_RTE_ARCH_X86_X32=y +CONFIG_RTE_ARCH_X86=y CONFIG_RTE_TOOLCHAIN="gcc" CONFIG_RTE_TOOLCHAIN_GCC=y
Signature · 1 line
2.7.0
Quoted 26 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, February 05, 2016 10:01 PM
To: Ananyev, Konstantin; Richardson, Bruce
Cc: [email protected]
Subject: [PATCH 0/2] clean-up arch configThomas Monjalon (2):
config: remove obsolete machine descriptions
config: add a common x86 flagconfig/common_bsdapp | 20 +++++--------------- config/common_linuxapp | 20 +++++--------------- config/defconfig_i686-native-linuxapp-gcc | 1 + config/defconfig_i686-native-linuxapp-icc | 1 + config/defconfig_x86_64-native-bsdapp-clang | 1 + config/defconfig_x86_64-native-bsdapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-clang | 1 + config/defconfig_x86_64-native-linuxapp-gcc | 1 + config/defconfig_x86_64-native-linuxapp-icc | 1 + config/defconfig_x86_x32-native-linuxapp-gcc | 1 + mk/target/generic/rte.vars.mk | 8 -------- 11 files changed, 18 insertions(+), 38 deletions(-)
Quoted 2 lines
--
2.7.0
Thomas Monjalon
AppliedQuoted 5 lines
Quoted 3 lines
Thomas Monjalon (2):
config: remove obsolete machine descriptions
config: add a common x86 flag
Applied
A lot of conditions may now be replaced with RTE_ARCH_X86. It will fix some issues with X32, often forgotten.