Skip to contentSkip to conversation

config: fix combined/shared lib

PATCH In review Thomas Monjalon 2 participants 3 messages Oct 23, 2013 – Oct 30, 2013 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
index a36a398..1894896 100644
@@ -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
index 7ed3325..b100560 100644
@@ -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
index c70a478..cb8e405 100644
@@ -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
index 034e4ed..167ed74 100644
@@ -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
index c517dd0..fa5839f 100644
@@ -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

#2 lore raw

Hi Thomas,

Quoted 5 lines

- 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)

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]

#4 lore raw

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