config: fix combined/shared lib
PATCH 1/1 config: fix combined/shared lib
- Configuration for combined and shared library was only in the template defconfig_x86_64-default-linuxapp-gcc.
- CONFIG_RTE_LIBNAME was in the wrong section
- CONFIG_RTE_LIBNAME quotes were not properly removed in "make context"
- RTE_LIBNAME had no quote in "C context" (include/rte_config.h)
--- config/defconfig_i686-default-linuxapp-gcc | 11 +++++++++++ config/defconfig_i686-default-linuxapp-icc | 10 ++++++++++ config/defconfig_x86_64-default-linuxapp-gcc | 3 +-- config/defconfig_x86_64-default-linuxapp-icc | 10 ++++++++++ mk/rte.vars.mk | 8 ++++---- 5 files changed, 36 insertions(+), 6 deletions(-)
config/defconfig_i686-default-linuxapp-gcc +11 -0
@@ -74,6 +74,17 @@ CONFIG_RTE_TOOLCHAIN_GCC=y CONFIG_RTE_FORCE_INTRINSICS=n # +# Compile to share library +# +CONFIG_RTE_BUILD_SHARED_LIB=n + +# +# Combine to one single library +# +CONFIG_RTE_BUILD_COMBINE_LIBS=n +CONFIG_RTE_LIBNAME="intel_dpdk" + +# # Compile libc directory # CONFIG_RTE_LIBC=n
config/defconfig_i686-default-linuxapp-icc +10 -0
@@ -74,6 +74,16 @@ CONFIG_RTE_TOOLCHAIN_ICC=y CONFIG_RTE_FORCE_INTRINSICS=n # +# Compile to share library +# +CONFIG_RTE_BUILD_SHARED_LIB=n + +# +# Combine to one single library +# +CONFIG_RTE_BUILD_COMBINE_LIBS=n +CONFIG_RTE_LIBNAME="intel_dpdk" + # # Compile libc directory #
config/defconfig_x86_64-default-linuxapp-gcc +1 -2
@@ -76,16 +76,15 @@ CONFIG_RTE_FORCE_INTRINSICS=n # # Compile to share library # -CONFIG_RTE_LIBNAME=intel_dpdk CONFIG_RTE_BUILD_SHARED_LIB=n # # Combine to one single library # CONFIG_RTE_BUILD_COMBINE_LIBS=n +CONFIG_RTE_LIBNAME="intel_dpdk" # -# # Compile libc directory # CONFIG_RTE_LIBC=n
config/defconfig_x86_64-default-linuxapp-icc +10 -0
@@ -74,6 +74,16 @@ CONFIG_RTE_TOOLCHAIN_ICC=y CONFIG_RTE_FORCE_INTRINSICS=n # +# Compile to share library +# +CONFIG_RTE_BUILD_SHARED_LIB=n + +# +# Combine to one single library +# +CONFIG_RTE_BUILD_COMBINE_LIBS=n +CONFIG_RTE_LIBNAME="intel_dpdk" + # # Compile libc directory #
mk/rte.vars.mk +4 -4
@@ -64,10 +64,6 @@ ifneq ($(BUILDING_RTE_SDK),) RTE_TARGET := $(RTE_ARCH)-$(RTE_MACHINE)-$(RTE_EXEC_ENV)-$(RTE_TOOLCHAIN) RTE_SDK_BIN := $(RTE_OUTPUT) RTE_BUILD_SHARED_LIB := $(CONFIG_RTE_BUILD_SHARED_LIB:"%"=%) - RTE_LIBNAME := $(CONFIG_RTE_LIBNAME:"%s"=%) - ifeq ($(RTE_LIBNAME),) - RTE_LIBNAME := intel_dpdk - endif ifeq ($(RTE_BUILD_SHARED_LIB),) RTE_BUILD_SHARED_LIB := n endif
@@ -75,6 +71,10 @@ ifneq ($(BUILDING_RTE_SDK),) ifeq ($(RTE_BUILD_COMBINE_LIBS),) RTE_BUILD_COMBINE_LIBS := n endif + RTE_LIBNAME := $(CONFIG_RTE_LIBNAME:"%"=%) + ifeq ($(RTE_LIBNAME),) + RTE_LIBNAME := intel_dpdk + endif endif # RTE_TARGET is deducted from config when we are building the SDK.
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 1382522765-27254-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Hi Thomas,
Quoted 5 lines
- Configuration for combined and shared library was only in the template defconfig_x86_64-default-linuxapp-gcc.
-CONFIG_RTE_LIBNAMEwas in the wrong section
-CONFIG_RTE_LIBNAMEquotes were not properly removed in "make context"
-RTE_LIBNAMEhad no quote in "C context" (include/rte_config.h)
acked
Just one remark about the commit log: if I understand well, the issue related to the quote not properly removed in "make context" is triggered by the quotes you added in the defconfig. I would reword the commit log a bit to highlight it.
Regards,
Olivier
A message that is not in the archive (sent off-list or not yet received): [email protected]
30/10/2013 09:53, Olivier MATZ :
Quoted 6 lines
acked
Just one remark about the commit log: if I understand well, the issue related to the quote not properly removed in "make context" is triggered by the quotes you added in the defconfig. I would reword the commit log a bit to highlight it.
I've pushed it with a reword as you suggested.
Thanks for the review.
Signature · 1 line
Thomas