diff options
Diffstat (limited to 'meta/recipes-kernel/trace-cmd')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/kernelshark/kernelshark-fix-syntax-error-of-shell.patch | 30 | ||||
-rw-r--r-- | meta/recipes-kernel/trace-cmd/kernelshark_git.bb (renamed from meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb) | 18 |
2 files changed, 11 insertions, 37 deletions
diff --git a/meta/recipes-kernel/trace-cmd/kernelshark/kernelshark-fix-syntax-error-of-shell.patch b/meta/recipes-kernel/trace-cmd/kernelshark/kernelshark-fix-syntax-error-of-shell.patch deleted file mode 100644 index faef049fec..0000000000 --- a/meta/recipes-kernel/trace-cmd/kernelshark/kernelshark-fix-syntax-error-of-shell.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | kernelshark: fix syntax error of shell | ||
2 | |||
3 | Delete "<<<" syntax of bash in Makefile, else we would get following error: | ||
4 | |||
5 | Syntax error: redirection unexpected | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
10 | --- | ||
11 | Makefile | 3 +-- | ||
12 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | index c1fa906..be84415 100644 | ||
16 | --- a/Makefile | ||
17 | +++ b/Makefile | ||
18 | @@ -89,8 +89,7 @@ endif | ||
19 | |||
20 | # $(call test-build, snippet, ret) -> ret if snippet compiles | ||
21 | # -> empty otherwise | ||
22 | -test-build = $(if $(shell $(CC) -o /dev/null -c -x c - > /dev/null 2>&1 \ | ||
23 | - <<<'$1' && echo y), $2) | ||
24 | +test-build = $(if $(shell echo '$1' |$(CC) -o /dev/null -c -x c - > /dev/null 2>&1 && echo y), $2) | ||
25 | |||
26 | # have udis86 disassembler library? | ||
27 | udis86-flags := $(call test-build,\#include <udis86.h>,-DHAVE_UDIS86 -ludis86) | ||
28 | -- | ||
29 | 1.7.9.5 | ||
30 | |||
diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb index 28412c72d3..b2ef1fcf55 100644 --- a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb +++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb | |||
@@ -9,9 +9,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
9 | DEPENDS = "gtk+ libxml2" | 9 | DEPENDS = "gtk+ libxml2" |
10 | RDEPENDS_${PN} = "trace-cmd" | 10 | RDEPENDS_${PN} = "trace-cmd" |
11 | 11 | ||
12 | SRC_URI_append = "file://kernelshark-fix-syntax-error-of-shell.patch" | 12 | EXTRA_OEMAKE = "\ |
13 | 13 | 'prefix=${prefix}' \ | |
14 | EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui" | 14 | 'bindir_relative=${@oe.path.relative(prefix, bindir)}' \ |
15 | 'libdir=${@oe.path.relative(prefix, libdir)}' \ | ||
16 | NO_PYTHON=1 \ | ||
17 | gui \ | ||
18 | " | ||
15 | 19 | ||
16 | do_compile_prepend() { | 20 | do_compile_prepend() { |
17 | # Make sure the recompile is OK | 21 | # Make sure the recompile is OK |
@@ -19,8 +23,8 @@ do_compile_prepend() { | |||
19 | } | 23 | } |
20 | 24 | ||
21 | do_install() { | 25 | do_install() { |
22 | oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui | 26 | oe_runmake DESTDIR="${D}" install_gui |
23 | rm ${D}${bindir}/trace-cmd | 27 | rm ${D}${bindir}/trace-cmd |
24 | rm -rf ${D}${datadir}/trace-cmd | 28 | rm -rf ${D}${libdir}/trace-cmd |
25 | rmdir ${D}${datadir} | 29 | rmdir ${D}${libdir} |
26 | } | 30 | } |