[meta-mentor] [PATCH 1/1] systemtap: Move additional patch and bbappend to meta-mentor layer

Drew Moseley drew_moseley at mentor.com
Wed May 1 10:30:40 PDT 2013


Signed-off-by: Drew Moseley <drew_moseley at mentor.com>
---
 .../systemtap/include_linux_binfmts_h.patch        |   29 ++++++++++++++++++++
 recipes/systemtap/systemtap_git.bbappend           |    7 +++++
 2 files changed, 36 insertions(+)
 create mode 100644 recipes/systemtap/systemtap/include_linux_binfmts_h.patch
 create mode 100644 recipes/systemtap/systemtap_git.bbappend

diff --git a/recipes/systemtap/systemtap/include_linux_binfmts_h.patch b/recipes/systemtap/systemtap/include_linux_binfmts_h.patch
new file mode 100644
index 0000000..e36fc7a
--- /dev/null
+++ b/recipes/systemtap/systemtap/include_linux_binfmts_h.patch
@@ -0,0 +1,29 @@
+>From e1fbb1aa8c7ea64ea03b30bf4c42117fc9d4741f Mon Sep 17 00:00:00 2001
+Message-Id: <e1fbb1aa8c7ea64ea03b30bf4c42117fc9d4741f.1343328283.git.Torsten.Polle at gmx.de>
+From: Torsten Polle <Torsten.Polle at gmx.de>
+Date: Thu, 26 Jul 2012 20:40:12 +0200
+Subject: [PATCH] Added include path to be able to compile for ARM.
+
+Compiling a script against a 3.4 ARM kerne with uprobes support results in a
+compile error because struct linux_binprm is not defined. Including
+linux/binfmts.h fixes the issue.
+
+Signed-off-by: Torsten Polle <Torsten.Polle at gmx.de>
+---
+ runtime/stp_utrace.h |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/runtime/stp_utrace.h b/runtime/stp_utrace.h
+index 2e11ceb..399af5b 100644
+--- a/runtime/stp_utrace.h
++++ b/runtime/stp_utrace.h
+@@ -4,6 +4,7 @@
+ #include <linux/list.h>
+ #include <linux/kref.h>
+ #include <linux/sched.h>
++#include <linux/binfmts.h>
+ 
+ /*
+  * Event bits passed to utrace_set_events().
+-- 
+1.7.4.1
diff --git a/recipes/systemtap/systemtap_git.bbappend b/recipes/systemtap/systemtap_git.bbappend
new file mode 100644
index 0000000..7142b89
--- /dev/null
+++ b/recipes/systemtap/systemtap_git.bbappend
@@ -0,0 +1,7 @@
+PRINC := "${@int(PRINC) + 1}"
+SRC_URI += " file://include_linux_binfmts_h.patch"
+
+# Revert FILESPATH back to the default value, so FILESEXTRAPATHS is obeyed
+FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/systemtap:"
-- 
1.7.9.5




More information about the meta-mentor mailing list