diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/kernelshark_git.bb | 10 | ||||
-rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch | 43 | ||||
-rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd_git.bb | 5 |
3 files changed, 54 insertions, 4 deletions
diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb index 6b4692efd5..733bddcc20 100644 --- a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb +++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb | |||
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
4 | file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" | 4 | file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" |
5 | 5 | ||
6 | SRCREV = "6c696cec3f264a9399241b6e648f58bc97117d49" | 6 | SRCREV = "6c696cec3f264a9399241b6e648f58bc97117d49" |
7 | PR = r0 | 7 | PR = r1 |
8 | PV = "1.0.5+git${SRCPV}" | 8 | PV = "1.0.5+git${SRCPV}" |
9 | 9 | ||
10 | DEPENDS = "gtk+" | 10 | DEPENDS = "gtk+" |
@@ -12,11 +12,17 @@ RDEPENDS_${PN} = "trace-cmd" | |||
12 | 12 | ||
13 | inherit pkgconfig | 13 | inherit pkgconfig |
14 | 14 | ||
15 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" | 15 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git \ |
16 | file://addldflags.patch" | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
17 | 18 | ||
18 | EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui" | 19 | EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui" |
19 | 20 | ||
21 | FILES_${PN} += "${datadir}/trace-cmd/plugins/*.so" | ||
22 | FILES_${PN}-dbg += "${datadir}/trace-cmd/plugins/.debug/" | ||
23 | |||
24 | FILESPATH = "${FILE_DIRNAME}/trace-cmd" | ||
25 | |||
20 | do_install() { | 26 | do_install() { |
21 | oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui | 27 | oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui |
22 | } | 28 | } |
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch b/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch new file mode 100644 index 0000000000..8e8f578e61 --- /dev/null +++ b/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Add ability for the Makefile to respect LDFLAGS. | ||
4 | |||
5 | Also remove hardcoded /usr/local/include include path. | ||
6 | |||
7 | RP 7/5/2011 | ||
8 | |||
9 | Index: git/Makefile | ||
10 | =================================================================== | ||
11 | --- git.orig/Makefile 2011-07-05 11:58:11.699910550 +0100 | ||
12 | +++ git/Makefile 2011-07-05 23:30:12.319920617 +0100 | ||
13 | @@ -189,10 +189,11 @@ | ||
14 | TRACECMD_VERSION = $(TC_VERSION).$(TC_PATCHLEVEL).$(TC_EXTRAVERSION) | ||
15 | KERNELSHARK_VERSION = $(KS_VERSION).$(KS_PATCHLEVEL).$(KS_EXTRAVERSION) | ||
16 | |||
17 | -INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) | ||
18 | +INCLUDES = -I. $(CONFIG_INCLUDES) | ||
19 | |||
20 | # Set compile option CFLAGS if not set elsewhere | ||
21 | CFLAGS ?= -g -Wall | ||
22 | +LDFLAGS ?= | ||
23 | |||
24 | # Append required CFLAGS | ||
25 | override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) | ||
26 | @@ -225,7 +226,7 @@ | ||
27 | |||
28 | do_app_build = \ | ||
29 | ($(print_app_build) \ | ||
30 | - $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS)) | ||
31 | + $(CC) $^ -rdynamic -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS)) | ||
32 | |||
33 | do_compile_shared_library = \ | ||
34 | ($(print_shared_lib_compile) \ | ||
35 | @@ -237,7 +238,7 @@ | ||
36 | |||
37 | do_plugin_build = \ | ||
38 | ($(print_plugin_build) \ | ||
39 | - $(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<) | ||
40 | + $(CC) $(CFLAGS) $(LDFLAGS) -shared -nostartfiles -o $@ $<) | ||
41 | |||
42 | do_build_static_lib = \ | ||
43 | ($(print_static_lib_build) \ | ||
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb index 5cf433a1cc..1278dc7199 100644 --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb | |||
@@ -4,12 +4,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
4 | file://trace-cmd.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" | 4 | file://trace-cmd.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" |
5 | 5 | ||
6 | SRCREV = "6c696cec3f264a9399241b6e648f58bc97117d49" | 6 | SRCREV = "6c696cec3f264a9399241b6e648f58bc97117d49" |
7 | PR = "r1" | 7 | PR = "r2" |
8 | PV = "1.0.5+git${SRCPV}" | 8 | PV = "1.0.5+git${SRCPV}" |
9 | 9 | ||
10 | inherit pkgconfig | 10 | inherit pkgconfig |
11 | 11 | ||
12 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" | 12 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git \ |
13 | file://addldflags.patch" | ||
13 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
14 | 15 | ||
15 | EXTRA_OEMAKE = "'prefix=${prefix}'" | 16 | EXTRA_OEMAKE = "'prefix=${prefix}'" |