summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-kernel')
-rwxr-xr-xmeta-linaro/recipes-kernel/gator/gator/gator.init48
-rw-r--r--meta-linaro/recipes-kernel/gator/gator_git.bb33
-rw-r--r--meta-linaro/recipes-kernel/linux/bootwrapper.inc67
-rw-r--r--meta-linaro/recipes-kernel/linux/linaro-kernel.inc15
-rw-r--r--meta-linaro/recipes-kernel/linux/linaro-lng-rt-x86-64_git.bb9
-rw-r--r--meta-linaro/recipes-kernel/linux/linaro-lng-x86-64_git.bb9
-rw-r--r--meta-linaro/recipes-kernel/linux/linaro-lng.inc31
-rw-r--r--meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb22
-rw-r--r--meta-linaro/recipes-kernel/linux/linux-linaro-stable-vexpress_git.bb16
-rw-r--r--meta-linaro/recipes-kernel/linux/linux-linaro-vexpress_git.bb16
-rw-r--r--meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch42
-rw-r--r--meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch45
-rw-r--r--meta-linaro/recipes-kernel/perf/perf.bbappend21
-rw-r--r--meta-linaro/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb23
-rw-r--r--meta-linaro/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb21
15 files changed, 418 insertions, 0 deletions
diff --git a/meta-linaro/recipes-kernel/gator/gator/gator.init b/meta-linaro/recipes-kernel/gator/gator/gator.init
new file mode 100755
index 0000000..11ac345
--- /dev/null
+++ b/meta-linaro/recipes-kernel/gator/gator/gator.init
@@ -0,0 +1,48 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: gatord
4# Required-Start: $local_fs
5# Required-Stop: $local_fs
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: Starts gatord
9# Description: Starts the Gator Daemon for ARM DS5
10### END INIT INFO
11
12PATH=/sbin:/usr/sbin:/bin:/usr/bin
13
14DESC="Gator"
15NAME="gatord"
16GATOR=`which $NAME`
17
18. /etc/init.d/functions || exit 1
19
20# Exit if the package is not installed
21[ -x "$GATOR" ] || exit 0
22
23case "$1" in
24 start)
25 echo -n "Starting $DESC: $NAME... "
26 depmod -a||true
27 modprobe gator
28 start-stop-daemon -S -b -x $GATOR -- $GATOR_ARGS
29 echo "done."
30 ;;
31 stop)
32 echo -n "Stopping $DESC: $NAME... "
33 start-stop-daemon -K -x $GATOR
34 echo "done."
35 ;;
36 restart)
37 echo "Restarting $DESC: $NAME... "
38 $0 stop
39 $0 start
40 echo "done."
41 ;;
42 *)
43 echo "Usage: $0 {start|stop|restart}"
44 exit 1
45 ;;
46esac
47
48exit 0
diff --git a/meta-linaro/recipes-kernel/gator/gator_git.bb b/meta-linaro/recipes-kernel/gator/gator_git.bb
new file mode 100644
index 0000000..1c8431b
--- /dev/null
+++ b/meta-linaro/recipes-kernel/gator/gator_git.bb
@@ -0,0 +1,33 @@
1SUMMARY = "DS-5 Gator daemon"
2DESCRIPTION = "Target-side daemon gathering data for ARM Streamline Performance Analyzer."
3
4LICENSE = "GPL-2"
5LIC_FILES_CHKSUM = "file://driver/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7SRCREV = "bc8a84cf0b138a2951679581453da7bd93003db6"
8PV = "5.19+git${SRCPV}"
9
10SRC_URI = "git://git.linaro.org/arm/ds5/gator.git;protocol=http;branch=linaro \
11 file://gator.init"
12
13S = "${WORKDIR}/git"
14
15inherit update-rc.d
16
17EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} ${TARGET_CC_ARCH} -DETCDIR=\"${sysconfdir}\"' \
18 'LDFLAGS=${LDFLAGS} ${TARGET_CC_ARCH}' 'CROSS_COMPILE=${TARGET_PREFIX}' \
19 'CXXFLAGS=${CXXFLAGS} ${TARGET_CC_ARCH} -fno-rtti'"
20
21do_compile() {
22 # The regular makefile tries to be 'smart' by hardcoding ABI assumptions, let's use the clean makefile for everything.
23 cp ${S}/daemon/Makefile_aarch64 ${S}/daemon/Makefile
24 oe_runmake -C daemon CC='${CC}' CXX='${CXX}'
25}
26
27do_install() {
28 install -D -p -m0755 daemon/gatord ${D}/${sbindir}/gatord
29 install -D -p -m0755 ${WORKDIR}/gator.init ${D}/${sysconfdir}/init.d/gator
30}
31
32INITSCRIPT_NAME = "gator"
33INITSCRIPT_PARAMS = "defaults 66"
diff --git a/meta-linaro/recipes-kernel/linux/bootwrapper.inc b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
new file mode 100644
index 0000000..c3a5634
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
@@ -0,0 +1,67 @@
1SRC_URI_append= " git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git;protocol=http;branch=master;name=bootwrapper;destsuffix=bootwrapper \
2"
3
4SRCREV_bootwrapper = "2ff0b45423226d3de898a52a81b8e90b20fecd60"
5BW = "${WORKDIR}/bootwrapper"
6DTBDIR="${S}/arch/arm64/boot/dts/"
7
8# Bootwrapper needs libgcc_s.so
9DEPENDS =+ "libgcc"
10
11export WRAPCFLAGS = "${CFLAGS}"
12export WRAPCPPFLAGS = "${CPPFLAGS}"
13export WRAPCXXFLAGS = "${CXXFLAGS}"
14export WRAPLDFLAGS = "${LDFLAGS}"
15
16do_compile_append() {
17 cd ${S}
18 oe_runmake dtbs
19 cd ${BW}
20
21 # Ensure the compile can find libgcc.a and other userspace friends
22 export CFLAGS="${WRAPCFLAGS}"
23 export CPPFLAGS="${WRAPCPPFLAGS}"
24 export CXXFLAGS="${WRAPCXXFLAGS}"
25 export LDFLAGS="${WRAPLDFLAGS}"
26
27 autoreconf -vfi
28 ./configure --host=aarch64-linux-gnu \
29 --with-kernel-dir="${S}" \
30 --with-cmdline="${BOOTARGS_COMMON} root=/dev/vda"
31 make IMAGE=linux-system-foundation.axf clean
32 make DTC=${S}/scripts/dtc/dtc \
33 KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
34 IMAGE=linux-system-foundation.axf
35 make IMAGE=img-foundation.axf clean
36 ./configure --host=aarch64-linux-gnu \
37 --with-kernel-dir="${S}" \
38 --with-cmdline="${BOOTARGS_COMMON} root=/dev/vda2"
39 make DTC=${S}/scripts/dtc/dtc \
40 KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
41 IMAGE=img-foundation.axf
42 make IMAGE=img.axf clean
43 ./configure --host=aarch64-linux-gnu \
44 --with-kernel-dir="${S}" \
45 --with-cmdline="${BOOTARGS_COMMON} root=/dev/mmcblk0p2"
46 make DTC=${S}/scripts/dtc/dtc \
47 KERNEL_DTB="${DTBDIR}/rtsm_ve-aemv8a.dtb" \
48 IMAGE=img.axf
49}
50
51do_install_append() {
52 install -m 0644 ${BW}/img-foundation.axf ${D}/boot/img-foundation.axf
53}
54
55do_deploy_append() {
56 install -d ${DEPLOYDIR}
57 install -m 0644 ${BW}/img.axf ${DEPLOYDIR}/img-${PV}.axf
58 install -m 0644 ${BW}/linux-system-foundation.axf ${DEPLOYDIR}/linux-system-foundation-${PV}.axf
59 install -m 0644 ${BW}/img-foundation.axf ${DEPLOYDIR}/img-foundation-${PV}.axf
60 cd ${DEPLOYDIR}
61 ln -sf img-${PV}.axf img.axf
62 ln -sf linux-system-foundation-${PV}.axf linux-system-foundation.axf
63 ln -sf img-foundation-${PV}.axf img-foundation.axf
64}
65
66PACKAGES =+ "kernel-bootwrapper"
67FILES_kernel-bootwrapper = "/boot/img-foundation.axf"
diff --git a/meta-linaro/recipes-kernel/linux/linaro-kernel.inc b/meta-linaro/recipes-kernel/linux/linaro-kernel.inc
new file mode 100644
index 0000000..0f6f572
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linaro-kernel.inc
@@ -0,0 +1,15 @@
1DESCRIPTION = "Linaro Kernel common bits"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
6inherit kernel siteinfo
7require recipes-kernel/linux/linux-dtb.inc
8
9SRC_URI = " \
10 git://git.linaro.org/git/ci/ubuntu-kernel-ci.git;protocol=http;branch=master;name=ubuntu-ci;destsuffix=ubuntu-ci \
11"
12S = "${WORKDIR}/git"
13
14SRCREV_ubuntu-ci = "33beed2b73c3de0556317317034569e909e90f1d"
15SRCREV_FORMAT = "kernel"
diff --git a/meta-linaro/recipes-kernel/linux/linaro-lng-rt-x86-64_git.bb b/meta-linaro/recipes-kernel/linux/linaro-lng-rt-x86-64_git.bb
new file mode 100644
index 0000000..cd75e84
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linaro-lng-rt-x86-64_git.bb
@@ -0,0 +1,9 @@
1DESCRIPTION = "Linaro LNG Kernel For x86"
2
3require linaro-lng.inc
4
5PV = "3.14+git${SRCPV}"
6
7inherit kernel siteinfo
8
9SRC_URI = "git://git.linaro.org/kernel/linux-linaro-lng.git;branch=linux-linaro-lng-v3.14-rt"
diff --git a/meta-linaro/recipes-kernel/linux/linaro-lng-x86-64_git.bb b/meta-linaro/recipes-kernel/linux/linaro-lng-x86-64_git.bb
new file mode 100644
index 0000000..334acbd
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linaro-lng-x86-64_git.bb
@@ -0,0 +1,9 @@
1DESCRIPTION = "Linaro LNG Kernel For x86"
2
3require linaro-lng.inc
4
5PV = "3.14+git${SRCPV}"
6
7inherit kernel siteinfo
8
9SRC_URI = "git://git.linaro.org/kernel/linux-linaro-lng.git;branch=linux-linaro-lng-v3.14"
diff --git a/meta-linaro/recipes-kernel/linux/linaro-lng.inc b/meta-linaro/recipes-kernel/linux/linaro-lng.inc
new file mode 100644
index 0000000..00ea523
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linaro-lng.inc
@@ -0,0 +1,31 @@
1DESCRIPTION = "Linaro LNG Kernel Basic support recipe"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
6SRCREV = "${AUTOREV}"
7SRCREV_FORMAT = "kernel"
8S = "${WORKDIR}/git"
9
10COMPATIBLE_MACHINE = "(lng-x86-64|lng-rt-x86-64)"
11
12do_configure_prepend_lng-x86-64() {
13 scripts/kconfig/merge_config.sh -m arch/x86/configs/x86_64_defconfig \
14 linaro/configs/hugepage.conf linaro/configs/ovs.conf \
15 linaro/configs/kvm-host.conf linaro/configs/no_hz_full.conf
16 scripts/config -e CONFIG_DEVTMPFS
17 scripts/config -e CONFIG_DEVTMPFS_MOUNT
18 scripts/config -e CONFIG_E1000E
19 scripts/config -e CONFIG_IXGBE
20}
21
22do_configure_prepend_lng-rt-x86-64() {
23 scripts/kconfig/merge_config.sh -m arch/x86/configs/x86_64_defconfig \
24 linaro/configs/hugepage.conf linaro/configs/preempt-rt.conf \
25 linaro/configs/ovs.conf linaro/configs/kvm-host.conf \
26 linaro/configs/no_hz_full.conf
27 scripts/config -e CONFIG_DEVTMPFS
28 scripts/config -e CONFIG_DEVTMPFS_MOUNT
29 scripts/config -e CONFIG_E1000E
30 scripts/config -e CONFIG_IXGBE
31}
diff --git a/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb b/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb
new file mode 100644
index 0000000..6e181a7
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb
@@ -0,0 +1,22 @@
1DESCRIPTION = "Linaro recipe for Aarch64 fast model kernels"
2
3SRCREV_kernel="7123b02be92f8bfeffbf31f44252c24eb838a84d"
4PV = "3.17+git${SRCPV}"
5
6SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-tracking.git;protocol=http;name=kernel;nobranch=1 "
7DEPENDS_append_aarch64 = " libgcc"
8KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
9KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
10
11
12include linaro-kernel.inc
13include bootwrapper.inc
14
15COMPATIBLE_HOST = "aarch64"
16KERNEL_IMAGETYPE = "Image"
17BOOTARGS_COMMON = "console=ttyAMA0 mem=2048M devtmpfs.mount=1 earlyprintk=pl011,0x1c090000 consolelog=9 rw"
18
19do_configure_prepend() {
20 . ../ubuntu-ci/configs/vexpress64.cfg
21 ARCH=arm64 scripts/kconfig/merge_config.sh -m $linaro_base_config_frags $ubuntu_config_frag $board_config_frags
22}
diff --git a/meta-linaro/recipes-kernel/linux/linux-linaro-stable-vexpress_git.bb b/meta-linaro/recipes-kernel/linux/linux-linaro-stable-vexpress_git.bb
new file mode 100644
index 0000000..ed27cae
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linux-linaro-stable-vexpress_git.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "Linaro Stable Kernel For Vexpress/KVM"
2
3PV = "3.10+git${SRCPV}"
4SRCREV_kernel="bfbceba4d4e9a3a538a80a1a0af18db55c9924a4"
5SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-stable.git;protocol=http;branch=linux-linaro-lsk;name=kernel "
6require linaro-kernel.inc
7
8KERNEL_DEVICETREE = "vexpress-v2p-ca15-tc1.dtb"
9BOOTARGS_COMMON = "root=/dev/mmcblk0p2 console=ttyAMA0 consolelog=9 mem=1024M rw rootwait"
10COMPATIBLE_HOST = "arm.*"
11KERNEL_IMAGETYPE = "zImage"
12
13do_configure_prepend() {
14 . ../ubuntu-ci/configs/lsk-vexpress.cfg
15 ARCH=arm scripts/kconfig/merge_config.sh -m $linaro_base_config_frags $ubuntu_config_frag $board_config_frags
16}
diff --git a/meta-linaro/recipes-kernel/linux/linux-linaro-vexpress_git.bb b/meta-linaro/recipes-kernel/linux/linux-linaro-vexpress_git.bb
new file mode 100644
index 0000000..d7d20e1
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/linux-linaro-vexpress_git.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "Linaro Kernel For Vexpress/KVM"
2
3SRCREV_kernel="7123b02be92f8bfeffbf31f44252c24eb838a84d"
4PV = "3.17+git${SRCPV}"
5SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-tracking.git;protocol=http;branch=linux-linaro;name=kernel "
6require linaro-kernel.inc
7
8KERNEL_DEVICETREE = "vexpress-v2p-ca15-tc1.dtb"
9BOOTARGS_COMMON = "root=/dev/mmcblk0p2 console=ttyAMA0 consolelog=9 mem=1024M rw rootwait"
10COMPATIBLE_HOST = "arm.*"
11KERNEL_IMAGETYPE = "zImage"
12
13do_configure_prepend() {
14 . ../ubuntu-ci/configs/vexpress.cfg
15 ARCH=arm scripts/kconfig/merge_config.sh -m $linaro_base_config_frags $ubuntu_config_frag $board_config_frags
16}
diff --git a/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch
new file mode 100644
index 0000000..4a4da97
--- /dev/null
+++ b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch
@@ -0,0 +1,42 @@
1From 7d885749b6de2c9a1168d566e2380207b9177108 Mon Sep 17 00:00:00 2001
2From: Mark Salter <msalter@redhat.com>
3Date: Fri, 25 Jul 2014 18:02:46 -0400
4Subject: [PATCH] perf tools: Fix arm64 build error
5
6I'm seeing the following build error on arm64:
7
8 In file included from util/event.c:3:0:
9 util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function)
10 u64 cache_regs[PERF_REGS_MAX];
11 ^
12
13This patch adds a PERF_REGS_MAX definition for arm64.
14
15Signed-off-by: Mark Salter <msalter@redhat.com>
16Acked-by: Jean Pihet <jean.pihet@linaro.org>
17Cc: Ingo Molnar <mingo@redhat.com>
18Cc: Jean Pihet <jean.pihet@linaro.org>
19Cc: Paul Mackerras <paulus@samba.org>
20Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
21Link: http://lkml.kernel.org/r/1406325766-8085-1-git-send-email-msalter@redhat.com
22Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
23---
24 tools/perf/arch/arm64/include/perf_regs.h | 2 ++
25 1 file changed, 2 insertions(+)
26
27diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h
28index e9441b9..1d3f39c 100644
29--- a/tools/perf/arch/arm64/include/perf_regs.h
30+++ b/tools/perf/arch/arm64/include/perf_regs.h
31@@ -6,6 +6,8 @@
32 #include <asm/perf_regs.h>
33
34 #define PERF_REGS_MASK ((1ULL << PERF_REG_ARM64_MAX) - 1)
35+#define PERF_REGS_MAX PERF_REG_ARM64_MAX
36+
37 #define PERF_REG_IP PERF_REG_ARM64_PC
38 #define PERF_REG_SP PERF_REG_ARM64_SP
39
40--
412.1.3
42
diff --git a/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch
new file mode 100644
index 0000000..cb03946
--- /dev/null
+++ b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch
@@ -0,0 +1,45 @@
1From 660d13296bbbe79635d1d9d700080b88061faffb Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Tue, 30 Sep 2014 12:27:12 +0100
4Subject: [PATCH] perf tools: Fix build breakage on arm64 targets
5
6Attempting to build the perf tool for an arm64 target results in the
7following failure:
8
9 arch/arm64/util/unwind-libunwind.c: In function 'libunwind__arch_reg_id':
10 arch/arm64/util/unwind-libunwind.c:77:3: error: implicit declaration of function 'pr_err'
11 pr_err("unwind: invalid reg id %d\n", regnum);
12 ^
13 arch/arm64/util/unwind-libunwind.c:77:3: error: nested extern declaration of 'pr_err'
14
15This is due to commit 84f5d36f4866 ("perf tools: Move pr_* debug macros
16into debug object") moving the pr_* macros into a new header file, but
17failing to update architectures other than x86.
18
19This patch adds the missing include, and fixes the build again.
20
21Signed-off-by: Will Deacon <will.deacon@arm.com>
22Cc: Jean Pihet <jean.pihet@linaro.org>
23Cc: Jiri Olsa <jolsa@kernel.org>
24Cc: linux-arm-kernel@lists.infradead.org
25Link: http://lkml.kernel.org/r/1412076432-22045-1-git-send-email-will.deacon@arm.com
26Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27---
28 tools/perf/arch/arm64/util/unwind-libunwind.c | 1 +
29 1 file changed, 1 insertion(+)
30
31diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c
32index 436ee43..a87afa9 100644
33--- a/tools/perf/arch/arm64/util/unwind-libunwind.c
34+++ b/tools/perf/arch/arm64/util/unwind-libunwind.c
35@@ -3,6 +3,7 @@
36 #include <libunwind.h>
37 #include "perf_regs.h"
38 #include "../../util/unwind.h"
39+#include "../../util/debug.h"
40
41 int libunwind__arch_reg_id(int regnum)
42 {
43--
442.1.3
45
diff --git a/meta-linaro/recipes-kernel/perf/perf.bbappend b/meta-linaro/recipes-kernel/perf/perf.bbappend
new file mode 100644
index 0000000..075e673
--- /dev/null
+++ b/meta-linaro/recipes-kernel/perf/perf.bbappend
@@ -0,0 +1,21 @@
1LICENSE = "GPL-2"
2LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
3
4PV = "3.17"
5
6FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
7SRC_URI = "${DEBIAN_MIRROR}/main/l/linux-tools/linux-tools_3.17.orig.tar.xz \
8 file://0001-perf-tools-Fix-arm64-build-error.patch \
9 file://0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch \
10"
11
12SRC_URI[md5sum] = "6c78f25c86761a60b89235e12bc109a8"
13SRC_URI[sha256sum] = "51162320841053fcf06070b6d5a6d984fb4c429e3ba3dc6d4eec021d374b926f"
14
15S = "${WORKDIR}/linux-tools-${PV}"
16B = "${WORKDIR}/linux-tools-${PV}"
17
18do_compile_prepend() {
19 mkdir -p ${S}/include/generated
20 echo "#define UTS_RELEASE \"${PV}\"" > ${S}/include/generated/utsrelease.h
21}
diff --git a/meta-linaro/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb b/meta-linaro/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb
new file mode 100644
index 0000000..dbc2a9d
--- /dev/null
+++ b/meta-linaro/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb
@@ -0,0 +1,23 @@
1SUMMARY = "Graphical trace viewer for Ftrace"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
4 file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e"
5DEPENDS = "gtk+"
6SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547"
7PV = "2.3.2"
8
9SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3"
10
11S = "${WORKDIR}/git"
12
13do_install() {
14 ${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install_gui
15 # remove files already shipped in trace-cmd package
16 rm -f ${D}${bindir}/trace-cmd
17 rm -rf ${D}${libdir}/trace-cmd
18 rmdir ${D}${libdir}
19}
20
21RDEPENDS_${PN} = "trace-cmd"
22
23FILESPATH = "${FILE_DIRNAME}/trace-cmd"
diff --git a/meta-linaro/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb b/meta-linaro/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb
new file mode 100644
index 0000000..28143b1
--- /dev/null
+++ b/meta-linaro/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb
@@ -0,0 +1,21 @@
1SUMMARY = "User interface to Ftrace"
2LICENSE = "GPLv2 & LGPLv2.1"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
4 file://trace-cmd.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e \
5 file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \
6 file://trace-input.c;beginline=5;endine=8;md5=dafd8a1cade30b847a8686dd3628cea4"
7
8DEPENDS = "swig-native"
9
10SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547"
11PV = "2.3.2"
12
13SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3"
14
15S = "${WORKDIR}/git"
16
17do_install() {
18 ${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install
19}
20
21FILES_${PN}-dbg += "${libdir}/trace-cmd/plugins/.debug/"