summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/asf/asf_git.bb45
-rw-r--r--recipes-kernel/cryptodev/cryptodev_1.5.bb51
-rw-r--r--recipes-kernel/cryptodev/files/Add-the-compile-and-install-rules-for-cryptodev-test.patch69
-rw-r--r--recipes-kernel/cryptodev/files/makefile_fixup.patch26
-rw-r--r--recipes-kernel/linux/files/libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch36
-rw-r--r--recipes-kernel/linux/linux-qoriq-sdk.bb31
-rw-r--r--recipes-kernel/linux/linux-qoriq-sdk.inc36
-rw-r--r--recipes-kernel/qoriq-debug/qoriq-debug_git.bb34
-rw-r--r--recipes-kernel/skmm/skmm_git.bb33
9 files changed, 361 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..7cc23cd
--- /dev/null
+++ b/recipes-kernel/asf/asf_git.bb
@@ -0,0 +1,45 @@
1DESCRIPTION = "Non-DPAA software Application Specific Fast-path"
2SECTION = "asf"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=9960b017720861b8c50c8c08723e57aa"
5
6SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git"
7SRCREV = "0b80c1df6a7490486d5106b28103598906793da0"
8
9DEPENDS="virtual/kernel"
10
11inherit module
12
13S = "${WORKDIR}/git/asfmodule"
14
15EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
16export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
17
18python () {
19 ma = d.getVar("DISTRO_FEATURES", True)
20 arch = d.getVar("OVERRIDES", True)
21
22 # the : after the arch is to skip the message on 64b
23 if not "multiarch" in ma and "e6500:" in arch:
24 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
25
26 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
27
28 if promote_kernel == "1":
29 d.setVar('KERNEL_CC_append', ' -m64')
30 d.setVar('KERNEL_LD_append', ' -melf64ppc')
31
32 error_qa = d.getVar('ERROR_QA', True)
33 if 'arch' in error_qa:
34 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
35}
36
37do_install(){
38 mkdir -p ${D}/usr/driver/asf
39 cp -rf ${S}/bin/full ${D}/usr/driver/asf
40 cp -rf ${S}/bin/min ${D}/usr/driver/asf
41 cp -rf ${S}/../scripts ${D}/usr/driver/asf/.
42}
43
44FILES_${PN} += "/usr/driver/asf"
45INHIBIT_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 @@
1SECTION = "devel"
2SUMMARY = "Linux Cryptodev KERNEL MODULE"
3DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6RCONFLICTS_${PN} = "ocf-linux"
7
8inherit module
9
10PR = "r1"
11DEPENDS += "openssl"
12
13SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7"
14
15SRC_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
19EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
20
21S = "${WORKDIR}/git"
22python () {
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
41do_compile_append() {
42 oe_runmake testprogs
43}
44
45do_install_append() {
46 oe_runmake install_tests
47}
48
49PACKAGES += "${PN}-tests"
50FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug"
51FILES_${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 @@
1From 1980a8f4779a955e73285e7a0d86549b69bea5c8 Mon Sep 17 00:00:00 2001
2From: Yu Zongchun <b40527@freescale.com>
3Date: Sun, 28 Apr 2013 14:39:22 +0800
4Subject: [PATCH] Add the compile and install rules for cryptodev tests folder
5
6This is required to install the cryptodev tests folder to rootfs
7
8Signed-off-by: Yu Zongchun <b40527@freescale.com>
9
10Upstream-Status: Pending
11
12---
13 Makefile | 6 ++++++
14 tests/Makefile | 8 ++++++++
15 2 files changed, 14 insertions(+), 0 deletions(-)
16
17diff --git a/Makefile b/Makefile
18index 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
41diff --git a/tests/Makefile b/tests/Makefile
42index 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--
681.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 @@
1diff --git a/Makefile b/Makefile
2index 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 @@
1Upstream-Status: Backport
2
3From b9e8c37220c80e78289a1e87b50c09418eb59a7e Mon Sep 17 00:00:00 2001
4From: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
5Date: Fri, 08 Mar 2013 11:21:52 +0000
6Subject: libtraceevent: Remove hard coded include to /usr/local/include in Makefile
7
8having /usr/local/include hardcoded into the makefile is not necessary
9as this is automatically included by GCC. It also infects cross-compile
10builds with the host systems includes.
11
12Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
13Acked-by: Namhyung Kim <namhyung@kernel.org>
14Cc: Ingo Molnar <mingo@redhat.com>
15Cc: Paul Mackerras <paulus@samba.org>
16Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
17Link: http://lkml.kernel.org/r/1362741712-21308-1-git-send-email-ml@communistcode.co.uk
18Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
19---
20(limited to 'tools/lib/traceevent/Makefile')
21
22diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
23index 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--
36cgit 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..df18cfe
--- /dev/null
+++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
@@ -0,0 +1,31 @@
1inherit kernel
2require recipes-kernel/linux/linux-dtb.inc
3
4DESCRIPTION = "Linux kernel for Freescale platforms"
5SECTION = "kernel"
6LICENSE = "GPLv2"
7
8require recipes-kernel/linux/linux-qoriq-sdk.inc
9
10SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch"
11
12PR = "${INC_PR}.1"
13
14DEPENDS_append = " libgcc"
15KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
16KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
17
18do_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}
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.inc b/recipes-kernel/linux/linux-qoriq-sdk.inc
new file mode 100644
index 0000000..1c66f9b
--- /dev/null
+++ b/recipes-kernel/linux/linux-qoriq-sdk.inc
@@ -0,0 +1,36 @@
1LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
2
3PV = "3.8"
4INC_PR = "r11"
5
6SRCREV = "4b66366af2d77de68f4bd6548d07421e13d3df05"
7SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git \
8 "
9
10KSRC ?= ""
11S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
12# make everything compatible for the time being
13COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
14
15python () {
16 ma = d.getVar("DISTRO_FEATURES", True)
17 arch = d.getVar("OVERRIDES", True)
18
19 # the : after the arch is to skip the message on 64b
20 if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
21 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
22
23 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
24
25 if promote_kernel == "1":
26 d.setVar('KERNEL_CC_append', ' -m64')
27 d.setVar('KERNEL_LD_append', ' -melf64ppc')
28
29 error_qa = d.getVar('ERROR_QA', True)
30 if 'arch' in error_qa:
31 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
32
33 all_qa = d.getVar('ALL_QA', True)
34 if 'arch' in all_qa:
35 d.setVar('ALL_QA', all_qa.replace(' arch', ''))
36}
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..a8d2e96
--- /dev/null
+++ b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb
@@ -0,0 +1,34 @@
1DESCRIPTION = "QorIQ Debug File System Module"
2SECTION = "qoriq-debug"
3LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=e29234dd5d40dc352cc60cc0c93437ba"
5
6inherit module autotools
7
8SRC_URI = "git://git.freescale.com/ppc/sdk/qoriq-debug.git"
9SRCREV = "08de2902af9a79ba9e436a284b8d7754b351f608"
10
11S = "${WORKDIR}/git"
12
13EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}"
14EXTRA_OEMAKE += 'SYSROOT="${D}"'
15
16python () {
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
diff --git a/recipes-kernel/skmm/skmm_git.bb b/recipes-kernel/skmm/skmm_git.bb
new file mode 100644
index 0000000..224e556
--- /dev/null
+++ b/recipes-kernel/skmm/skmm_git.bb
@@ -0,0 +1,33 @@
1DESCRIPTION = "SKMM application for PCIe endpoint"
2SECTION = "skmm"
3LICENSE = "BSD & GPLv2"
4LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
5
6DEPENDS = "libedit"
7
8SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git"
9SRCREV = "80d8393a2033b3b0cc8f885702d7b288956f3a37"
10
11COMPATIBLE_MACHINE = "(p4080ds|t4240qds)"
12
13S = "${WORKDIR}/git"
14
15EXTRA_OEMAKE = 'MACHINE=${MACHINE}'
16
17export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
18export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
19
20do_compile () {
21 export ARCH=${TARGET_ARCH}
22 oe_runmake HOST=x86_64 clean
23 oe_runmake HOST=x86_64
24 oe_runmake HOST=powerpc clean
25 oe_runmake HOST=powerpc
26}
27
28do_install () {
29 oe_runmake ARCH=${TARGET_ARCH} HOST=x86_64 install DESTDIR=${D}
30 oe_runmake ARCH=${TARGET_ARCH} HOST=powerpc install DESTDIR=${D}
31}
32
33FILES_${PN} += "/home/root/.skmm/*"