diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
| commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
| tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-kernel/sysprof | |
| download | poky-daisy-140929.tar.gz | |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-kernel/sysprof')
| -rw-r--r-- | meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch | 22 | ||||
| -rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-arm.patch | 21 | ||||
| -rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-mips.patch | 22 | ||||
| -rw-r--r-- | meta/recipes-kernel/sysprof/sysprof_git.bb | 20 |
4 files changed, 85 insertions, 0 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 0000000000..dcc2cbe67c --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | On uclibc elf.h does not have GNU extentions but we need this define | ||
| 2 | so we define it locally if its not getting it from elf.h | ||
| 3 | |||
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Index: git/elfparser.h | ||
| 9 | =================================================================== | ||
| 10 | --- git.orig/elfparser.h 2011-07-16 18:57:41.000000000 -0700 | ||
| 11 | +++ git/elfparser.h 2011-07-16 20:28:54.733829895 -0700 | ||
| 12 | @@ -17,6 +17,10 @@ | ||
| 13 | */ | ||
| 14 | #include <glib.h> | ||
| 15 | |||
| 16 | +#ifndef NT_GNU_BUILD_ID | ||
| 17 | +#define NT_GNU_BUILD_ID 3 | ||
| 18 | +#endif | ||
| 19 | + | ||
| 20 | typedef struct ElfSym ElfSym; | ||
| 21 | typedef struct ElfParser ElfParser; | ||
| 22 | |||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-arm.patch b/meta/recipes-kernel/sysprof/files/rmb-arm.patch new file mode 100644 index 0000000000..c53ac6427c --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-arm.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | |||
| 2 | Upstream-Status: Pending | ||
| 3 | |||
| 4 | Index: git/util.h | ||
| 5 | =================================================================== | ||
| 6 | --- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600 | ||
| 7 | +++ git/util.h 2010-12-07 22:43:47.616243002 -0600 | ||
| 8 | @@ -37,4 +37,13 @@ | ||
| 9 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
| 10 | #endif | ||
| 11 | |||
| 12 | +#ifdef __arm__ | ||
| 13 | +/* | ||
| 14 | + * Use the __kuser_memory_barrier helper in the CPU helper page. See | ||
| 15 | + * arch/arm/kernel/entry-armv.S in the kernel source for details. | ||
| 16 | + */ | ||
| 17 | +#define rmb() ((void(*)(void))0xffff0fa0)() | ||
| 18 | +#define cpu_relax() asm volatile("":::"memory") | ||
| 19 | +#endif | ||
| 20 | + | ||
| 21 | #endif | ||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-mips.patch b/meta/recipes-kernel/sysprof/files/rmb-mips.patch new file mode 100644 index 0000000000..e055b8ad8b --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-mips.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Index: git/util.h | ||
| 4 | =================================================================== | ||
| 5 | --- git.orig/util.h 2010-12-08 01:22:44.486243001 -0600 | ||
| 6 | +++ git/util.h 2010-12-08 01:23:27.836243001 -0600 | ||
| 7 | @@ -37,4 +37,15 @@ | ||
| 8 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
| 9 | #endif | ||
| 10 | |||
| 11 | +#ifdef __mips__ | ||
| 12 | +#define rmb() asm volatile( \ | ||
| 13 | + ".set mips2\n\t" \ | ||
| 14 | + "sync\n\t" \ | ||
| 15 | + ".set mips0" \ | ||
| 16 | + : /* no output */ \ | ||
| 17 | + : /* no input */ \ | ||
| 18 | + : "memory") | ||
| 19 | +#define cpu_relax() asm volatile("" ::: "memory") | ||
| 20 | +#endif | ||
| 21 | + | ||
| 22 | #endif | ||
diff --git a/meta/recipes-kernel/sysprof/sysprof_git.bb b/meta/recipes-kernel/sysprof/sysprof_git.bb new file mode 100644 index 0000000000..73e617f219 --- /dev/null +++ b/meta/recipes-kernel/sysprof/sysprof_git.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | SUMMARY = "System-wide Performance Profiler for Linux" | ||
| 2 | LICENSE = "GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
| 4 | |||
| 5 | DEPENDS = "gtk+ libglade" | ||
| 6 | |||
| 7 | SRCREV = "cd44ee6644c3641507fb53b8a2a69137f2971219" | ||
| 8 | PV = "1.2.0+git${SRCPV}" | ||
| 9 | |||
| 10 | SRC_URI = "git://git.gnome.org/sysprof \ | ||
| 11 | file://define-NT_GNU_BUILD_ID.patch \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI_append_arm = " file://rmb-arm.patch" | ||
| 15 | SRC_URI_append_mips = " file://rmb-mips.patch" | ||
| 16 | SRC_URI_append_mips64 = " file://rmb-mips.patch" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | inherit autotools | ||
