[meta-intel] [fido][PATCH 09/16] meta-isg: dpdk v1.8: add app makefile patch to enable sysroot setting

Ong Boon Leong boon.leong.ong at intel.com
Tue Jul 7 16:20:49 PDT 2015


DPDK v1.8.0 app Makefile does not support "--sysroot=<path>" option
in LDFLAGS because of Makefile internal logic that always add -Wl, before.
This causes poky GNU linker search path issue for target machine sysroot
usr/lib.

Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
---
 ....0-add-sysroot-option-within-app-makefile.patch |   33 ++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-sysroot-option-within-app-makefile.patch

diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-sysroot-option-within-app-makefile.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-sysroot-option-within-app-makefile.patch
new file mode 100644
index 0000000..02c7dc3
--- /dev/null
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-add-sysroot-option-within-app-makefile.patch
@@ -0,0 +1,33 @@
+From 3112250f6452215890fc7db73c8127e111af956f Mon Sep 17 00:00:00 2001
+From: Ong Boon Leong <boon.leong.ong at intel.com>
+Date: Thu, 2 Jul 2015 23:51:01 +0800
+Subject: [PATCH] dpdk v1.8.0: add --sysroot option within app makefile
+
+Upstream-Status: Inappropriate [configuration]
+
+in DPDK v1.8.0, rte.app.mk has been changed to add -Wl, to
+all items listed under EXTRA_LDFLAGS. It causes --sysroot=
+<path> to not setup correctly when we depends on gcc to setup
+for GNU ld.
+
+Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
+---
+ mk/rte.app.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mk/rte.app.mk b/mk/rte.app.mk
+index e1a0dbf..9528588 100644
+--- a/mk/rte.app.mk
++++ b/mk/rte.app.mk
+@@ -259,7 +259,7 @@ ifeq ($(LINK_USING_CC),1)
+ override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS))
+ O_TO_EXE = $(CC) $(CFLAGS) $(LDFLAGS_$(@)) \
+ 	-Wl,-Map=$(@).map,--cref -o $@ $(OBJS-y) $(call linkerprefix,$(LDFLAGS)) \
+-	$(EXTRA_LDFLAGS) $(call linkerprefix,$(LDLIBS))
++	$(EXTRA_LDFLAGS) $(SYSROOTPATH) $(call linkerprefix,$(LDLIBS))
+ else
+ O_TO_EXE = $(LD) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \
+ 	-Map=$(@).map --cref -o $@ $(OBJS-y) $(LDLIBS)
+-- 
+1.7.9.5
+
-- 
1.7.9.5



More information about the meta-intel mailing list