summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch b/meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch
new file mode 100644
index 0000000000..7996fdde73
--- /dev/null
+++ b/meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch
@@ -0,0 +1,38 @@
1From 75c4aec6de3a615909f3283eac585760de101b8c Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Tue, 7 Mar 2017 10:46:12 -0800
4Subject: [PATCH] buildrun: remove quotes around -I include line
5
6By having the quotes, the kernel Makefile addtree macro adds the
7kernel $srctree directory as a prefix and causes compilation failures.
8Removing the quotes resolves the issue.
9
10This is trimmed from the verbose output of the GCC command line
11Before:
12 -I/srv/sdb/builds/4.9/tmp/work-shared/qemux86-64/kernel-source/"/srv/sdb/releases/jethro/builds/4.1/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime"
13
14After:
15 -I/srv/sdb/builds/4.9/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime
16
17Upstream-Status: Pending
18Signed-off-by: Saul Wold <sgw@linux.intel.com>
19---
20 buildrun.cxx | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/buildrun.cxx b/buildrun.cxx
24index aaea64c..8a8ee9f 100644
25--- a/buildrun.cxx
26+++ b/buildrun.cxx
27@@ -495,7 +495,7 @@ compile_pass (systemtap_session& s)
28 #if CHECK_POINTER_ARITH_PR5947
29 o << "EXTRA_CFLAGS += -Wpointer-arith" << endl;
30 #endif
31- o << "EXTRA_CFLAGS += -I\"" << s.runtime_path << "\"" << endl;
32+ o << "EXTRA_CFLAGS += -I" << s.runtime_path << endl;
33 // XXX: this may help ppc toc overflow
34 // o << "CFLAGS := $(subst -Os,-O2,$(CFLAGS)) -fminimal-toc" << endl;
35 o << "obj-m := " << s.module_name << ".o" << endl;
36--
372.7.4
38