Skip to contentSkip to conversation

clean-up arch config

PATCH In review Thomas Monjalon 2 participants 5 messages Feb 5, 2016 – Feb 11, 2016

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index ed7c31c..50b9829 100644
@@ -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
index 74bc515..4866b96 100644
@@ -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
index 53650c3..75a616a 100644
@@ -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
#2 lore raw

PATCH 2/2 config: add a common x86 flag

In reply to Thomas Monjalon

Intel 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
index 50b9829..be09b48 100644
@@ -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
index 4866b96..bf1bb6e 100644
@@ -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
index a90de9b..290183a 100644
@@ -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
index c021321..96725f3 100644
@@ -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
index 3305cbd..d2baf2c 100644
@@ -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
index aad7add..5a6a4e8 100644
@@ -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
index 5f3074e..7b1102f 100644
@@ -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
index 60baf5b..e69a37e 100644
@@ -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
index 71d1e28..bfa8a3d 100644
@@ -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
index fb0afc4..0c26857 100644
@@ -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
Acked-by on the v1 series
#3 lore raw
In reply to Thomas Monjalon
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 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(-)
Quoted 2 lines

--
2.7.0

author Applied
#4 lore raw
Quoted 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.