diff options
author | Saul Wold <sgw@linux.intel.com> | 2017-03-07 12:12:09 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-08 11:52:56 +0000 |
commit | 3f0037ce3c49ecc98c486ebf90844a4db4976b14 (patch) | |
tree | fa3c821caaaa317c410d8cb1f79b4c3d4e77e1f1 /meta/recipes-kernel | |
parent | 35ce834167b186c748793a95cb3d900cc6660dc7 (diff) | |
download | poky-3f0037ce3c49ecc98c486ebf90844a4db4976b14.tar.gz |
systemtap: Add patch to remove quotes
This fixes the -I include lines that are getting passed to the
kernel macros
[YOCTO #10990]
(From OE-Core rev: b4d2f41a474c111e5fc64cae635d851386d860ba)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap/0001-buildrun-remove-quotes-around-I-include-line.patch | 38 | ||||
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.inc | 1 |
2 files changed, 39 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 @@ | |||
1 | From 75c4aec6de3a615909f3283eac585760de101b8c Mon Sep 17 00:00:00 2001 | ||
2 | From: Saul Wold <sgw@linux.intel.com> | ||
3 | Date: Tue, 7 Mar 2017 10:46:12 -0800 | ||
4 | Subject: [PATCH] buildrun: remove quotes around -I include line | ||
5 | |||
6 | By having the quotes, the kernel Makefile addtree macro adds the | ||
7 | kernel $srctree directory as a prefix and causes compilation failures. | ||
8 | Removing the quotes resolves the issue. | ||
9 | |||
10 | This is trimmed from the verbose output of the GCC command line | ||
11 | Before: | ||
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 | |||
14 | After: | ||
15 | -I/srv/sdb/builds/4.9/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
19 | --- | ||
20 | buildrun.cxx | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/buildrun.cxx b/buildrun.cxx | ||
24 | index 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 | -- | ||
37 | 2.7.4 | ||
38 | |||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc index c9612308a5..a6aedd38a6 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc | |||
@@ -11,6 +11,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git \ | |||
11 | file://no-msgfmt-check.patch \ | 11 | file://no-msgfmt-check.patch \ |
12 | file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \ | 12 | file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \ |
13 | file://0001-Install-python-modules-to-correct-library-dir.patch \ | 13 | file://0001-Install-python-modules-to-correct-library-dir.patch \ |
14 | file://0001-buildrun-remove-quotes-around-I-include-line.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | # systemtap doesn't support mips | 17 | # systemtap doesn't support mips |