From c307b7e7a6cbcb2d2d8db2dc78246d568930b735 Mon Sep 17 00:00:00 2001 From: Zhenhua Luo Date: Wed, 17 Jul 2013 05:51:13 -0500 Subject: [PATCH] perf: Remove hard coded include to /usr/local/include in Makefile Having /usr/local/include hardcoded into the makefile is not necessary as this is automatically included by GCC. It also infects cross-compile builds with the host systems includes. Signed-off-by: Zhenhua Luo --- ...ude-to-usr-local-include-in-Makefile.patch | 36 +++++++++++++++++++ .../recipes-kernel/linux/linux-qoriq-sdk.bb | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 meta-fsl-ppc/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch diff --git a/meta-fsl-ppc/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch b/meta-fsl-ppc/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch new file mode 100644 index 00000000..15c397dc --- /dev/null +++ b/meta-fsl-ppc/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch @@ -0,0 +1,36 @@ +Upstream-Status: Backport + +From b9e8c37220c80e78289a1e87b50c09418eb59a7e Mon Sep 17 00:00:00 2001 +From: Jack Mitchell +Date: Fri, 08 Mar 2013 11:21:52 +0000 +Subject: libtraceevent: Remove hard coded include to /usr/local/include in Makefile + +having /usr/local/include hardcoded into the makefile is not necessary +as this is automatically included by GCC. It also infects cross-compile +builds with the host systems includes. + +Signed-off-by: Jack Mitchell +Acked-by: Namhyung Kim +Cc: Ingo Molnar +Cc: Paul Mackerras +Cc: Peter Zijlstra +Link: http://lkml.kernel.org/r/1362741712-21308-1-git-send-email-ml@communistcode.co.uk +Signed-off-by: Arnaldo Carvalho de Melo +--- +(limited to 'tools/lib/traceevent/Makefile') + +diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile +index a20e320..0b0a907 100644 +--- a/tools/lib/traceevent/Makefile ++++ b/tools/lib/traceevent/Makefile +@@ -122,7 +122,7 @@ export Q VERBOSE + + EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION) + +-INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) ++INCLUDES = -I. $(CONFIG_INCLUDES) + + # Set compile option CFLAGS if not set elsewhere + CFLAGS ?= -g -Wall +-- +cgit v0.9.2 diff --git a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb index 502132f5..7dd70595 100644 --- a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb +++ b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb @@ -7,6 +7,8 @@ LICENSE = "GPLv2" require recipes-kernel/linux/linux-qoriq-sdk.inc +SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch" + PR = "${INC_PR}.1" DEPENDS_append = " libgcc" -- 2.40.1