From: Thomas Monjalon Date: Wed, 23 Oct 2013 09:40:56 +0000 (+0200) Subject: config: fix combined/shared lib X-Git-Tag: spdx-start~11052 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=173fca9078f56aa44f23873310fc3b877541a2f7;p=dpdk.git 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 - RTE_LIBNAME had no quote in "C context" (include/rte_config.h) - and then CONFIG_RTE_LIBNAME quotes were not properly removed in "make context" Signed-off-by: Thomas Monjalon Acked-by: Olivier Matz --- diff --git a/config/defconfig_i686-default-linuxapp-gcc b/config/defconfig_i686-default-linuxapp-gcc index b340592f67..10a3db2b26 100644 --- a/config/defconfig_i686-default-linuxapp-gcc +++ b/config/defconfig_i686-default-linuxapp-gcc @@ -73,6 +73,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 # diff --git a/config/defconfig_i686-default-linuxapp-icc b/config/defconfig_i686-default-linuxapp-icc index d6b7e22f88..d3fdd950f5 100644 --- a/config/defconfig_i686-default-linuxapp-icc +++ b/config/defconfig_i686-default-linuxapp-icc @@ -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 # diff --git a/config/defconfig_x86_64-default-linuxapp-gcc b/config/defconfig_x86_64-default-linuxapp-gcc index a680dd43bf..95430cf77d 100644 --- a/config/defconfig_x86_64-default-linuxapp-gcc +++ b/config/defconfig_x86_64-default-linuxapp-gcc @@ -76,15 +76,14 @@ 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 # diff --git a/config/defconfig_x86_64-default-linuxapp-icc b/config/defconfig_x86_64-default-linuxapp-icc index 41e2151383..83dae84f70 100644 --- a/config/defconfig_x86_64-default-linuxapp-icc +++ b/config/defconfig_x86_64-default-linuxapp-icc @@ -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 # diff --git a/mk/rte.vars.mk b/mk/rte.vars.mk index 297336177f..4257687a1c 100644 --- a/mk/rte.vars.mk +++ b/mk/rte.vars.mk @@ -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.