diff options
Diffstat (limited to 'recipes-kernel')
9 files changed, 357 insertions, 0 deletions
diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb new file mode 100644 index 0000000..c9948ee --- /dev/null +++ b/recipes-kernel/asf/asf_git.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | DESCRIPTION = "Non-DPAA software Application Specific Fast-path" | ||
2 | SECTION = "asf" | ||
3 | LICENSE = "GPLv2 & GPLv2+ & BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287" | ||
5 | |||
6 | SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;nobranch=1" | ||
7 | SRCREV = "c262d7701af325b50cae54279a021ae7b5081e24" | ||
8 | SRCREV_t2080qds = "6af9df06e2747bdee91c21d1626b5b53b97849c5" | ||
9 | SRCREV_t2080qds-64b = "6af9df06e2747bdee91c21d1626b5b53b97849c5" | ||
10 | |||
11 | DEPENDS="virtual/kernel" | ||
12 | RDEPENDS_${PN} += "ipsec-tools" | ||
13 | |||
14 | inherit module | ||
15 | |||
16 | S = "${WORKDIR}/git/asfmodule" | ||
17 | |||
18 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
19 | export KERNEL_PATH = "${STAGING_KERNEL_DIR}" | ||
20 | |||
21 | python () { | ||
22 | ma = d.getVar("DISTRO_FEATURES", True) | ||
23 | arch = d.getVar("OVERRIDES", True) | ||
24 | |||
25 | # the : after the arch is to skip the message on 64b | ||
26 | if not "multiarch" in ma and "e6500:" in arch: | ||
27 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
28 | |||
29 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
30 | |||
31 | if promote_kernel == "1": | ||
32 | d.setVar('KERNEL_CC_append', ' -m64') | ||
33 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
34 | |||
35 | error_qa = d.getVar('ERROR_QA', True) | ||
36 | if 'arch' in error_qa: | ||
37 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
38 | } | ||
39 | |||
40 | do_install(){ | ||
41 | mkdir -p ${D}/usr/driver/asf | ||
42 | cp -rf ${S}/bin/full ${D}/usr/driver/asf | ||
43 | cp -rf ${S}/bin/min ${D}/usr/driver/asf | ||
44 | cp -rf ${S}/../scripts ${D}/usr/driver/asf/. | ||
45 | } | ||
46 | |||
47 | FILES_${PN} += "/usr/driver/asf" | ||
48 | INHIBIT_PACKAGE_STRIP = "1" | ||
diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb new file mode 100644 index 0000000..4c1dade --- /dev/null +++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SECTION = "devel" | ||
2 | SUMMARY = "Linux Cryptodev KERNEL MODULE" | ||
3 | DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
6 | RCONFLICTS_${PN} = "ocf-linux" | ||
7 | |||
8 | inherit module | ||
9 | |||
10 | PR = "r1" | ||
11 | DEPENDS += "openssl" | ||
12 | |||
13 | SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" | ||
14 | |||
15 | SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ | ||
16 | file://makefile_fixup.patch \ | ||
17 | file://Add-the-compile-and-install-rules-for-cryptodev-test.patch" | ||
18 | |||
19 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | python () { | ||
23 | ma = d.getVar("DISTRO_FEATURES", True) | ||
24 | arch = d.getVar("OVERRIDES", True) | ||
25 | |||
26 | # the : after the arch is to skip the message on 64b | ||
27 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
28 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
29 | |||
30 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
31 | |||
32 | if promote_kernel == "1": | ||
33 | d.setVar('KERNEL_CC_append', ' -m64') | ||
34 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
35 | |||
36 | error_qa = d.getVar('ERROR_QA', True) | ||
37 | if 'arch' in error_qa: | ||
38 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
39 | } | ||
40 | |||
41 | do_compile_append() { | ||
42 | oe_runmake testprogs | ||
43 | } | ||
44 | |||
45 | do_install_append() { | ||
46 | oe_runmake install_tests | ||
47 | } | ||
48 | |||
49 | PACKAGES += "${PN}-tests" | ||
50 | FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug" | ||
51 | FILES_${PN}-tests = "${bindir}/tests_cryptodev/*" | ||
diff --git a/recipes-kernel/cryptodev/files/Add-the-compile-and-install-rules-for-cryptodev-test.patch b/recipes-kernel/cryptodev/files/Add-the-compile-and-install-rules-for-cryptodev-test.patch new file mode 100644 index 0000000..cb871f6 --- /dev/null +++ b/recipes-kernel/cryptodev/files/Add-the-compile-and-install-rules-for-cryptodev-test.patch | |||
@@ -0,0 +1,69 @@ | |||
1 | From 1980a8f4779a955e73285e7a0d86549b69bea5c8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yu Zongchun <b40527@freescale.com> | ||
3 | Date: Sun, 28 Apr 2013 14:39:22 +0800 | ||
4 | Subject: [PATCH] Add the compile and install rules for cryptodev tests folder | ||
5 | |||
6 | This is required to install the cryptodev tests folder to rootfs | ||
7 | |||
8 | Signed-off-by: Yu Zongchun <b40527@freescale.com> | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | --- | ||
13 | Makefile | 6 ++++++ | ||
14 | tests/Makefile | 8 ++++++++ | ||
15 | 2 files changed, 14 insertions(+), 0 deletions(-) | ||
16 | |||
17 | diff --git a/Makefile b/Makefile | ||
18 | index 2be8825..4cbb865 100644 | ||
19 | --- a/Makefile | ||
20 | +++ b/Makefile | ||
21 | @@ -17,6 +17,9 @@ install: | ||
22 | @echo "Installing cryptodev.h in /usr/include/crypto ..." | ||
23 | @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h | ||
24 | |||
25 | +install_tests: | ||
26 | + make -C tests install DESTDIR=$(PREFIX) | ||
27 | + | ||
28 | clean: | ||
29 | make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean | ||
30 | rm -f $(hostprogs) *~ | ||
31 | @@ -25,6 +28,9 @@ clean: | ||
32 | check: | ||
33 | KERNEL_DIR=$(KERNEL_DIR) make -C tests check | ||
34 | |||
35 | +testprogs: | ||
36 | + KERNEL_DIR=$(KERNEL_DIR) make -C tests testprogs | ||
37 | + | ||
38 | FILEBASE = cryptodev-linux-$(VERSION) | ||
39 | TMPDIR ?= /tmp | ||
40 | OUTPUT = $(FILEBASE).tar.gz | ||
41 | diff --git a/tests/Makefile b/tests/Makefile | ||
42 | index 87ca3c7..0488cf6 100644 | ||
43 | --- a/tests/Makefile | ||
44 | +++ b/tests/Makefile | ||
45 | @@ -19,6 +19,12 @@ example-async-hmac-objs := async_hmac.o | ||
46 | example-async-speed-objs := async_speed.o | ||
47 | example-hashcrypt-speed-objs := hashcrypt_speed.c | ||
48 | |||
49 | +install: | ||
50 | + install -d $(DESTDIR)/usr/bin/tests_cryptodev | ||
51 | + for bin in $(hostprogs); do \ | ||
52 | + install -m 755 $${bin} $(DESTDIR)/usr/bin/tests_cryptodev/; \ | ||
53 | + done | ||
54 | + | ||
55 | check: $(hostprogs) | ||
56 | ./cipher | ||
57 | ./hmac | ||
58 | @@ -28,6 +34,8 @@ check: $(hostprogs) | ||
59 | ./cipher-gcm | ||
60 | ./cipher-aead | ||
61 | |||
62 | +testprogs: $(hostprogs) | ||
63 | + | ||
64 | clean: | ||
65 | rm -f *.o *~ $(hostprogs) | ||
66 | |||
67 | -- | ||
68 | 1.7.5.4 | ||
69 | |||
diff --git a/recipes-kernel/cryptodev/files/makefile_fixup.patch b/recipes-kernel/cryptodev/files/makefile_fixup.patch new file mode 100644 index 0000000..323aacd --- /dev/null +++ b/recipes-kernel/cryptodev/files/makefile_fixup.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | diff --git a/Makefile b/Makefile | ||
2 | index 2be8825..b36d68c 100644 | ||
3 | --- a/Makefile | ||
4 | +++ b/Makefile | ||
5 | @@ -1,6 +1,7 @@ | ||
6 | KBUILD_CFLAGS += -I$(src) | ||
7 | KERNEL_DIR = /lib/modules/$(shell uname -r)/build | ||
8 | VERSION = 1.5 | ||
9 | +PREFIX = | ||
10 | |||
11 | cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o | ||
12 | |||
13 | @@ -12,10 +13,10 @@ build: version.h | ||
14 | version.h: Makefile | ||
15 | @echo "#define VERSION \"$(VERSION)\"" > version.h | ||
16 | |||
17 | -install: | ||
18 | +modules_install: | ||
19 | make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install | ||
20 | - @echo "Installing cryptodev.h in /usr/include/crypto ..." | ||
21 | - @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h | ||
22 | + @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." | ||
23 | + @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h | ||
24 | |||
25 | clean: | ||
26 | make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean | ||
diff --git a/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch b/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch new file mode 100644 index 0000000..15c397d --- /dev/null +++ b/recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | From b9e8c37220c80e78289a1e87b50c09418eb59a7e Mon Sep 17 00:00:00 2001 | ||
4 | From: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk> | ||
5 | Date: Fri, 08 Mar 2013 11:21:52 +0000 | ||
6 | Subject: libtraceevent: Remove hard coded include to /usr/local/include in Makefile | ||
7 | |||
8 | having /usr/local/include hardcoded into the makefile is not necessary | ||
9 | as this is automatically included by GCC. It also infects cross-compile | ||
10 | builds with the host systems includes. | ||
11 | |||
12 | Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk> | ||
13 | Acked-by: Namhyung Kim <namhyung@kernel.org> | ||
14 | Cc: Ingo Molnar <mingo@redhat.com> | ||
15 | Cc: Paul Mackerras <paulus@samba.org> | ||
16 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> | ||
17 | Link: http://lkml.kernel.org/r/1362741712-21308-1-git-send-email-ml@communistcode.co.uk | ||
18 | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> | ||
19 | --- | ||
20 | (limited to 'tools/lib/traceevent/Makefile') | ||
21 | |||
22 | diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile | ||
23 | index a20e320..0b0a907 100644 | ||
24 | --- a/tools/lib/traceevent/Makefile | ||
25 | +++ b/tools/lib/traceevent/Makefile | ||
26 | @@ -122,7 +122,7 @@ export Q VERBOSE | ||
27 | |||
28 | EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION) | ||
29 | |||
30 | -INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) | ||
31 | +INCLUDES = -I. $(CONFIG_INCLUDES) | ||
32 | |||
33 | # Set compile option CFLAGS if not set elsewhere | ||
34 | CFLAGS ?= -g -Wall | ||
35 | -- | ||
36 | cgit v0.9.2 | ||
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb new file mode 100644 index 0000000..275691a --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq-sdk.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | inherit kernel | ||
2 | require recipes-kernel/linux/linux-dtb.inc | ||
3 | |||
4 | DESCRIPTION = "Linux kernel for Freescale platforms" | ||
5 | SECTION = "kernel" | ||
6 | LICENSE = "GPLv2" | ||
7 | |||
8 | require recipes-kernel/linux/linux-qoriq-sdk.inc | ||
9 | |||
10 | PR = "${INC_PR}.1" | ||
11 | |||
12 | SCMVERSION ?= "y" | ||
13 | |||
14 | DEPENDS_append = " libgcc" | ||
15 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | ||
16 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | ||
17 | |||
18 | do_configure_prepend() { | ||
19 | # copy desired defconfig so we pick it up for the real kernel_do_configure | ||
20 | cp ${KERNEL_DEFCONFIG} ${B}/.config | ||
21 | |||
22 | # add config fragments | ||
23 | if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then | ||
24 | ${S}/scripts/kconfig/merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG} | ||
25 | fi | ||
26 | |||
27 | # append sdk version in kernel version if SDK_VERSION is defined | ||
28 | if [ -n "${SDK_VERSION}" ]; then | ||
29 | echo "CONFIG_LOCALVERSION=\"-${SDK_VERSION}\"" >> ${S}/.config | ||
30 | fi | ||
31 | |||
32 | # Add GIT revision to the local version | ||
33 | if [ "${SCMVERSION}" = "y" ]; then | ||
34 | head=`git rev-parse --verify --short HEAD 2> /dev/null` | ||
35 | printf "%s%s" +g $head > ${S}/.scmversion | ||
36 | fi | ||
37 | } | ||
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.inc b/recipes-kernel/linux/linux-qoriq-sdk.inc new file mode 100644 index 0000000..83c632e --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq-sdk.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
2 | |||
3 | PV = "3.8" | ||
4 | INC_PR = "r11" | ||
5 | |||
6 | SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1" | ||
7 | SRCREV = "3edd71eeb4e4ae27baf539e0a5f0c8e8261bf65b" | ||
8 | SRCREV_t2080qds = "47914f6cf77197921c648c6ea8977974fa54d03a" | ||
9 | SRCREV_t2080qds-64b = "47914f6cf77197921c648c6ea8977974fa54d03a" | ||
10 | |||
11 | KSRC ?= "" | ||
12 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' | ||
13 | # make everything compatible for the time being | ||
14 | COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" | ||
15 | |||
16 | python () { | ||
17 | ma = d.getVar("DISTRO_FEATURES", True) | ||
18 | arch = d.getVar("OVERRIDES", True) | ||
19 | |||
20 | # the : after the arch is to skip the message on 64b | ||
21 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
22 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
23 | |||
24 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
25 | |||
26 | if promote_kernel == "1": | ||
27 | d.setVar('KERNEL_CC_append', ' -m64') | ||
28 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
29 | |||
30 | error_qa = d.getVar('ERROR_QA', True) | ||
31 | if 'arch' in error_qa: | ||
32 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
33 | |||
34 | all_qa = d.getVar('ALL_QA', True) | ||
35 | if 'arch' in all_qa: | ||
36 | d.setVar('ALL_QA', all_qa.replace(' arch', '')) | ||
37 | } | ||
diff --git a/recipes-kernel/lttng/lttng-modules_%.bbappend b/recipes-kernel/lttng/lttng-modules_%.bbappend new file mode 100644 index 0000000..5415f16 --- /dev/null +++ b/recipes-kernel/lttng/lttng-modules_%.bbappend | |||
@@ -0,0 +1,18 @@ | |||
1 | inherit distro_features_check | ||
2 | |||
3 | REQUIRED_DISTRO_FEATURES_append_e6500 ?= "multiarch" | ||
4 | |||
5 | python () { | ||
6 | |||
7 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
8 | |||
9 | if promote_kernel == "1": | ||
10 | d.appendVar('KERNEL_CC', ' -m64') | ||
11 | d.appendVar('KERNEL_LD', ' -melf64ppc') | ||
12 | |||
13 | |||
14 | error_qa = d.getVar('ERROR_QA', True) | ||
15 | if 'arch' in error_qa: | ||
16 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
17 | |||
18 | } | ||
diff --git a/recipes-kernel/qoriq-debug/qoriq-debug_git.bb b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb new file mode 100644 index 0000000..5b0256f --- /dev/null +++ b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "QorIQ Debug File System Module" | ||
2 | SECTION = "qoriq-debug" | ||
3 | LICENSE = "GPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e29234dd5d40dc352cc60cc0c93437ba" | ||
5 | |||
6 | inherit module autotools | ||
7 | |||
8 | SRCBRANCH = "sdk-v1.4.x" | ||
9 | SRC_URI = "git://git.freescale.com/ppc/sdk/qoriq-debug.git;branch=${SRCBRANCH}" | ||
10 | SRCREV = "08de2902af9a79ba9e436a284b8d7754b351f608" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}" | ||
15 | EXTRA_OEMAKE += 'SYSROOT="${D}"' | ||
16 | |||
17 | python () { | ||
18 | ma = d.getVar("DISTRO_FEATURES", True) | ||
19 | arch = d.getVar("OVERRIDES", True) | ||
20 | |||
21 | # the : after the arch is to skip the message on 64b | ||
22 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
23 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
24 | |||
25 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
26 | |||
27 | if promote_kernel == "1": | ||
28 | d.setVar('KERNEL_CC_append', ' -m64') | ||
29 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
30 | |||
31 | error_qa = d.getVar('ERROR_QA', True) | ||
32 | if 'arch' in error_qa: | ||
33 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
34 | } | ||
35 | |||