From c66f5c118e39c3115c9e7a3cf6f2f7f3399ef705 Mon Sep 17 00:00:00 2001 From: Ong Boon Leong Date: Fri, 10 Jul 2015 21:23:46 +0800 Subject: meta-isg: dpdk v1.8: add app makefile patch to enable sysroot setting DPDK v1.8.0 app Makefile does not support "--sysroot=" 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 Signed-off-by: Saul Wold --- ....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 (limited to 'meta-isg') 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 00000000..02c7dc3c --- /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 +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= + to not setup correctly when we depends on gcc to setup +for GNU ld. + +Signed-off-by: Ong Boon Leong +--- + 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 + -- cgit v1.2.3-54-g00ecf