meta-isg: dpdk v1.8: add app makefile patch to enable sysroot setting

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@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Ong Boon Leong 2015-07-10 21:23:46 +08:00 committed by Saul Wold
parent 1d8bee6450
commit c66f5c118e

View File

@ -0,0 +1,33 @@
From 3112250f6452215890fc7db73c8127e111af956f Mon Sep 17 00:00:00 2001
From: Ong Boon Leong <boon.leong.ong@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@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