diff options
author | Adrian Alonso <b38018@freescale.com> | 2011-08-24 17:55:38 -0500 |
---|---|---|
committer | Adrian Alonso <b38018@freescale.com> | 2011-08-24 17:55:38 -0500 |
commit | e68d2561ed9b1362f729db0e2d26343431bfe646 (patch) | |
tree | 7e0f1c42bc74c2ed8d4fe53f09097a5e5a294f40 /recipes-kernel | |
parent | a3d7c8b0b5b20a2cc8c9bcd59a0103026eed67fc (diff) | |
download | meta-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.bb | 57 |
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 @@ | |||
1 | DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use." | ||
2 | SECTION = "libs" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_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 | |||
11 | PR = "r0" | ||
12 | INHIBIT_DEFAULT_DEPS = "1" | ||
13 | DEPENDS += "unifdef-native" | ||
14 | RDEPENDS_${PN}-dev = "" | ||
15 | |||
16 | REL="11.05.01" | ||
17 | SRC_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 | |||
20 | SRC_URI[source.md5sum] = "38d0e15a2be7f5e58f46a959ec9ec4d3" | ||
21 | SRC_URI[source.sha256sum] = "19983d5daee9053e49303041365be7c55bbaf08941aea07dc8362d44742c26f6" | ||
22 | SRC_URI[patchs.md5sum] = "e6c24894017f3b5977ecfa07e28dc69e" | ||
23 | SRC_URI[patchs.sha256sum] = "20b6f1adb14613c1eda1d7e353e169753ad45c7544e2bc590bf3b9a998d61984" | ||
24 | |||
25 | do_patch () { | ||
26 | # Apply distributed kernel patchs | ||
27 | cd ${S} | ||
28 | tar xf ${WORKDIR}/linux-${PV}-imx_${REL} | ||
29 | ./patches/patch-kernel.sh | ||
30 | } | ||
31 | |||
32 | S = "${WORKDIR}/linux-${PV}" | ||
33 | |||
34 | set_arch() { | ||
35 | case ${TARGET_ARCH} in | ||
36 | arm*) ARCH=arm ;; | ||
37 | esac | ||
38 | } | ||
39 | |||
40 | do_configure() { | ||
41 | set_arch | ||
42 | oe_runmake allnoconfig ARCH=$ARCH | ||
43 | } | ||
44 | |||
45 | do_compile () { | ||
46 | } | ||
47 | |||
48 | do_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 | |||
57 | BBCLASSEXTEND = "nativesdk" | ||