[oe-commits] Khem Raj : sysprof: Define NT_GNU_BUILD_ID if undefined

git version control git at git.openembedded.org
Wed Jul 20 14:27:48 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 22fdaba9813beb276caf2b6194fccc4cccf138c4
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=22fdaba9813beb276caf2b6194fccc4cccf138c4

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Jul 18 16:00:17 2011 -0700

sysprof: Define NT_GNU_BUILD_ID if undefined

This is needed on uclibc which does not have all GNU extentions

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 .../sysprof/files/define-NT_GNU_BUILD_ID.patch     |   22 ++++++++++++++++++++
 meta/recipes-kernel/sysprof/sysprof_git.bb         |    5 ++-
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch b/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch
new file mode 100644
index 0000000..dcc2cbe
--- /dev/null
+++ b/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch
@@ -0,0 +1,22 @@
+On uclibc elf.h does not have GNU extentions but we need this define
+so we define it locally if its not getting it from elf.h
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+
+Upstream-Status: Pending
+
+Index: git/elfparser.h
+===================================================================
+--- git.orig/elfparser.h	2011-07-16 18:57:41.000000000 -0700
++++ git/elfparser.h	2011-07-16 20:28:54.733829895 -0700
+@@ -17,6 +17,10 @@
+  */
+ #include <glib.h>
+ 
++#ifndef NT_GNU_BUILD_ID
++#define NT_GNU_BUILD_ID 3
++#endif
++
+ typedef struct ElfSym ElfSym;
+ typedef struct ElfParser ElfParser;
+ 
diff --git a/meta/recipes-kernel/sysprof/sysprof_git.bb b/meta/recipes-kernel/sysprof/sysprof_git.bb
index 2246803..1af5822 100644
--- a/meta/recipes-kernel/sysprof/sysprof_git.bb
+++ b/meta/recipes-kernel/sysprof/sysprof_git.bb
@@ -5,11 +5,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 DEPENDS = "gtk+ libglade"
 
 SRCREV = "38a6af1f0a45e528fd2842983da71e0f23c70d6a"
-PR = r0
+PR = r1
 PV = "1.1.6+git${SRCPV}"
 
 SRC_URI = "git://git.gnome.org/sysprof;protocol=git \
-           "
+           file://define-NT_GNU_BUILD_ID.patch \
+          "
 
 SRC_URI_append_arm  = " file://rmb-arm.patch"
 SRC_URI_append_mips = " file://rmb-mips.patch"





More information about the Openembedded-commits mailing list