summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorAdrian Alonso <b38018@freescale.com>2011-08-24 17:55:38 -0500
committerAdrian Alonso <b38018@freescale.com>2011-08-24 17:55:38 -0500
commite68d2561ed9b1362f729db0e2d26343431bfe646 (patch)
tree7e0f1c42bc74c2ed8d4fe53f09097a5e5a294f40 /recipes-kernel
parenta3d7c8b0b5b20a2cc8c9bcd59a0103026eed67fc (diff)
downloadmeta-fsl-arm-e68d2561ed9b1362f729db0e2d26343431bfe646.tar.gz
linux-libc-headers: imx kernel headers
* linux-libc-headers for iMx targets, includes some Freescale kernel headers files not distributed in mainstream kernel sources. Signed-off-by: Adrian Alonso <b38018@freescale.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.35.3.bb57
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.35.3.bb b/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.35.3.bb
new file mode 100644
index 0000000..60a8bea
--- /dev/null
+++ b/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.35.3.bb
@@ -0,0 +1,57 @@
1DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use."
2SECTION = "libs"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
6# Upstream doesn't include imx headers
7#SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2"
8#SRC_URI[md5sum] = "38d0e15a2be7f5e58f46a959ec9ec4d3"
9#SRC_URI[sha256sum] = "19983d5daee9053e49303041365be7c55bbaf08941aea07dc8362d44742c26f6"
10
11PR = "r0"
12INHIBIT_DEFAULT_DEPS = "1"
13DEPENDS += "unifdef-native"
14RDEPENDS_${PN}-dev = ""
15
16REL="11.05.01"
17SRC_URI = "http://opensource.freescale.com/pub/scm/imx/linux-${PV}.tar.bz2;name=source \
18 http://opensource.freescale.com/pub/scm/imx/linux-${PV}-imx_${REL}.bz2;name=patchs"
19
20SRC_URI[source.md5sum] = "38d0e15a2be7f5e58f46a959ec9ec4d3"
21SRC_URI[source.sha256sum] = "19983d5daee9053e49303041365be7c55bbaf08941aea07dc8362d44742c26f6"
22SRC_URI[patchs.md5sum] = "e6c24894017f3b5977ecfa07e28dc69e"
23SRC_URI[patchs.sha256sum] = "20b6f1adb14613c1eda1d7e353e169753ad45c7544e2bc590bf3b9a998d61984"
24
25do_patch () {
26 # Apply distributed kernel patchs
27 cd ${S}
28 tar xf ${WORKDIR}/linux-${PV}-imx_${REL}
29 ./patches/patch-kernel.sh
30}
31
32S = "${WORKDIR}/linux-${PV}"
33
34set_arch() {
35 case ${TARGET_ARCH} in
36 arm*) ARCH=arm ;;
37 esac
38}
39
40do_configure() {
41 set_arch
42 oe_runmake allnoconfig ARCH=$ARCH
43}
44
45do_compile () {
46}
47
48do_install() {
49 set_arch
50 oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
51 # Kernel should not be exporting this header
52 rm -f ${D}${exec_prefix}/include/scsi/scsi.h
53 # The ..install.cmd conflicts between various configure runs
54 find ${D}${includedir} -name ..install.cmd | xargs rm -f
55}
56
57BBCLASSEXTEND = "nativesdk"