diff options
Diffstat (limited to 'meta-linaro/recipes-kernel')
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 | |||
12 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | ||
13 | |||
14 | DESC="Gator" | ||
15 | NAME="gatord" | ||
16 | GATOR=`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 | |||
23 | case "$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 | ;; | ||
46 | esac | ||
47 | |||
48 | exit 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 @@ | |||
1 | SUMMARY = "DS-5 Gator daemon" | ||
2 | DESCRIPTION = "Target-side daemon gathering data for ARM Streamline Performance Analyzer." | ||
3 | |||
4 | LICENSE = "GPL-2" | ||
5 | LIC_FILES_CHKSUM = "file://driver/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
6 | |||
7 | SRCREV = "bc8a84cf0b138a2951679581453da7bd93003db6" | ||
8 | PV = "5.19+git${SRCPV}" | ||
9 | |||
10 | SRC_URI = "git://git.linaro.org/arm/ds5/gator.git;protocol=http;branch=linaro \ | ||
11 | file://gator.init" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | inherit update-rc.d | ||
16 | |||
17 | EXTRA_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 | |||
21 | do_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 | |||
27 | do_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 | |||
32 | INITSCRIPT_NAME = "gator" | ||
33 | INITSCRIPT_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 @@ | |||
1 | SRC_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 | |||
4 | SRCREV_bootwrapper = "2ff0b45423226d3de898a52a81b8e90b20fecd60" | ||
5 | BW = "${WORKDIR}/bootwrapper" | ||
6 | DTBDIR="${S}/arch/arm64/boot/dts/" | ||
7 | |||
8 | # Bootwrapper needs libgcc_s.so | ||
9 | DEPENDS =+ "libgcc" | ||
10 | |||
11 | export WRAPCFLAGS = "${CFLAGS}" | ||
12 | export WRAPCPPFLAGS = "${CPPFLAGS}" | ||
13 | export WRAPCXXFLAGS = "${CXXFLAGS}" | ||
14 | export WRAPLDFLAGS = "${LDFLAGS}" | ||
15 | |||
16 | do_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 | |||
51 | do_install_append() { | ||
52 | install -m 0644 ${BW}/img-foundation.axf ${D}/boot/img-foundation.axf | ||
53 | } | ||
54 | |||
55 | do_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 | |||
66 | PACKAGES =+ "kernel-bootwrapper" | ||
67 | FILES_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 @@ | |||
1 | DESCRIPTION = "Linaro Kernel common bits" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
5 | |||
6 | inherit kernel siteinfo | ||
7 | require recipes-kernel/linux/linux-dtb.inc | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | git://git.linaro.org/git/ci/ubuntu-kernel-ci.git;protocol=http;branch=master;name=ubuntu-ci;destsuffix=ubuntu-ci \ | ||
11 | " | ||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | SRCREV_ubuntu-ci = "33beed2b73c3de0556317317034569e909e90f1d" | ||
15 | SRCREV_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 @@ | |||
1 | DESCRIPTION = "Linaro LNG Kernel For x86" | ||
2 | |||
3 | require linaro-lng.inc | ||
4 | |||
5 | PV = "3.14+git${SRCPV}" | ||
6 | |||
7 | inherit kernel siteinfo | ||
8 | |||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "Linaro LNG Kernel For x86" | ||
2 | |||
3 | require linaro-lng.inc | ||
4 | |||
5 | PV = "3.14+git${SRCPV}" | ||
6 | |||
7 | inherit kernel siteinfo | ||
8 | |||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "Linaro LNG Kernel Basic support recipe" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
5 | |||
6 | SRCREV = "${AUTOREV}" | ||
7 | SRCREV_FORMAT = "kernel" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(lng-x86-64|lng-rt-x86-64)" | ||
11 | |||
12 | do_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 | |||
22 | do_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 @@ | |||
1 | DESCRIPTION = "Linaro recipe for Aarch64 fast model kernels" | ||
2 | |||
3 | SRCREV_kernel="7123b02be92f8bfeffbf31f44252c24eb838a84d" | ||
4 | PV = "3.17+git${SRCPV}" | ||
5 | |||
6 | SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-tracking.git;protocol=http;name=kernel;nobranch=1 " | ||
7 | DEPENDS_append_aarch64 = " libgcc" | ||
8 | KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" | ||
9 | KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" | ||
10 | |||
11 | |||
12 | include linaro-kernel.inc | ||
13 | include bootwrapper.inc | ||
14 | |||
15 | COMPATIBLE_HOST = "aarch64" | ||
16 | KERNEL_IMAGETYPE = "Image" | ||
17 | BOOTARGS_COMMON = "console=ttyAMA0 mem=2048M devtmpfs.mount=1 earlyprintk=pl011,0x1c090000 consolelog=9 rw" | ||
18 | |||
19 | do_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 @@ | |||
1 | DESCRIPTION = "Linaro Stable Kernel For Vexpress/KVM" | ||
2 | |||
3 | PV = "3.10+git${SRCPV}" | ||
4 | SRCREV_kernel="bfbceba4d4e9a3a538a80a1a0af18db55c9924a4" | ||
5 | SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-stable.git;protocol=http;branch=linux-linaro-lsk;name=kernel " | ||
6 | require linaro-kernel.inc | ||
7 | |||
8 | KERNEL_DEVICETREE = "vexpress-v2p-ca15-tc1.dtb" | ||
9 | BOOTARGS_COMMON = "root=/dev/mmcblk0p2 console=ttyAMA0 consolelog=9 mem=1024M rw rootwait" | ||
10 | COMPATIBLE_HOST = "arm.*" | ||
11 | KERNEL_IMAGETYPE = "zImage" | ||
12 | |||
13 | do_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 @@ | |||
1 | DESCRIPTION = "Linaro Kernel For Vexpress/KVM" | ||
2 | |||
3 | SRCREV_kernel="7123b02be92f8bfeffbf31f44252c24eb838a84d" | ||
4 | PV = "3.17+git${SRCPV}" | ||
5 | SRC_URI_append = " git://git.linaro.org/git/kernel/linux-linaro-tracking.git;protocol=http;branch=linux-linaro;name=kernel " | ||
6 | require linaro-kernel.inc | ||
7 | |||
8 | KERNEL_DEVICETREE = "vexpress-v2p-ca15-tc1.dtb" | ||
9 | BOOTARGS_COMMON = "root=/dev/mmcblk0p2 console=ttyAMA0 consolelog=9 mem=1024M rw rootwait" | ||
10 | COMPATIBLE_HOST = "arm.*" | ||
11 | KERNEL_IMAGETYPE = "zImage" | ||
12 | |||
13 | do_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 @@ | |||
1 | From 7d885749b6de2c9a1168d566e2380207b9177108 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Salter <msalter@redhat.com> | ||
3 | Date: Fri, 25 Jul 2014 18:02:46 -0400 | ||
4 | Subject: [PATCH] perf tools: Fix arm64 build error | ||
5 | |||
6 | I'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 | |||
13 | This patch adds a PERF_REGS_MAX definition for arm64. | ||
14 | |||
15 | Signed-off-by: Mark Salter <msalter@redhat.com> | ||
16 | Acked-by: Jean Pihet <jean.pihet@linaro.org> | ||
17 | Cc: Ingo Molnar <mingo@redhat.com> | ||
18 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
19 | Cc: Paul Mackerras <paulus@samba.org> | ||
20 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> | ||
21 | Link: http://lkml.kernel.org/r/1406325766-8085-1-git-send-email-msalter@redhat.com | ||
22 | Signed-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 | |||
27 | diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h | ||
28 | index 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 | -- | ||
41 | 2.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 @@ | |||
1 | From 660d13296bbbe79635d1d9d700080b88061faffb Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Tue, 30 Sep 2014 12:27:12 +0100 | ||
4 | Subject: [PATCH] perf tools: Fix build breakage on arm64 targets | ||
5 | |||
6 | Attempting to build the perf tool for an arm64 target results in the | ||
7 | following 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 | |||
15 | This is due to commit 84f5d36f4866 ("perf tools: Move pr_* debug macros | ||
16 | into debug object") moving the pr_* macros into a new header file, but | ||
17 | failing to update architectures other than x86. | ||
18 | |||
19 | This patch adds the missing include, and fixes the build again. | ||
20 | |||
21 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
22 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
23 | Cc: Jiri Olsa <jolsa@kernel.org> | ||
24 | Cc: linux-arm-kernel@lists.infradead.org | ||
25 | Link: http://lkml.kernel.org/r/1412076432-22045-1-git-send-email-will.deacon@arm.com | ||
26 | Signed-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 | |||
31 | diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c | ||
32 | index 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 | -- | ||
44 | 2.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 @@ | |||
1 | LICENSE = "GPL-2" | ||
2 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
3 | |||
4 | PV = "3.17" | ||
5 | |||
6 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
7 | SRC_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 | |||
12 | SRC_URI[md5sum] = "6c78f25c86761a60b89235e12bc109a8" | ||
13 | SRC_URI[sha256sum] = "51162320841053fcf06070b6d5a6d984fb4c429e3ba3dc6d4eec021d374b926f" | ||
14 | |||
15 | S = "${WORKDIR}/linux-tools-${PV}" | ||
16 | B = "${WORKDIR}/linux-tools-${PV}" | ||
17 | |||
18 | do_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 @@ | |||
1 | SUMMARY = "Graphical trace viewer for Ftrace" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
4 | file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" | ||
5 | DEPENDS = "gtk+" | ||
6 | SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547" | ||
7 | PV = "2.3.2" | ||
8 | |||
9 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | do_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 | |||
21 | RDEPENDS_${PN} = "trace-cmd" | ||
22 | |||
23 | FILESPATH = "${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 @@ | |||
1 | SUMMARY = "User interface to Ftrace" | ||
2 | LICENSE = "GPLv2 & LGPLv2.1" | ||
3 | LIC_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 | |||
8 | DEPENDS = "swig-native" | ||
9 | |||
10 | SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547" | ||
11 | PV = "2.3.2" | ||
12 | |||
13 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | do_install() { | ||
18 | ${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install | ||
19 | } | ||
20 | |||
21 | FILES_${PN}-dbg += "${libdir}/trace-cmd/plugins/.debug/" | ||