diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-kernel/linux-libc-headers | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 73 | ||||
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb | 7 |
2 files changed, 80 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc new file mode 100644 index 0000000000..b18d09fd6c --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
@@ -0,0 +1,73 @@ | |||
1 | SUMMARY = "Sanitized set of kernel headers for the C library's use" | ||
2 | SECTION = "devel" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | ######################################################################### | ||
6 | #### PLEASE READ | ||
7 | ######################################################################### | ||
8 | # | ||
9 | # You're probably looking here thinking you need to create some new copy | ||
10 | # of linux-libc-headers since you have your own custom kernel. To put | ||
11 | # this simply, you DO NOT. | ||
12 | # | ||
13 | # Why? These headers are used to build the libc. If you customise the | ||
14 | # headers you are customising the libc and the libc becomes machine | ||
15 | # specific. Most people do not add custom libc extensions to the kernel | ||
16 | # and have a machine specific libc. | ||
17 | # | ||
18 | # But you have some kernel headers you need for some driver? That is fine | ||
19 | # but get them from STAGING_KERNEL_DIR where the kernel installs itself. | ||
20 | # This will make the package using them machine specific but this is much | ||
21 | # better than having a machine specific C library. This does mean your | ||
22 | # recipe needs a DEPENDS += "virtual/kernel" but again, that is fine and | ||
23 | # makes total sense. | ||
24 | # | ||
25 | # There can also be a case where your kernel extremely old and you want | ||
26 | # an older libc ABI for that old kernel. The headers installed by this | ||
27 | # recipe should still be a standard mainline kernel, not your own custom | ||
28 | # one. | ||
29 | # | ||
30 | # -- RP | ||
31 | |||
32 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
33 | |||
34 | python __anonymous () { | ||
35 | major = d.getVar("PV",True).split('.')[0] | ||
36 | if major == "3": | ||
37 | d.setVar("HEADER_FETCH_VER", "3.0") | ||
38 | else: | ||
39 | d.setVar("HEADER_FETCH_VER", "2.6") | ||
40 | } | ||
41 | |||
42 | inherit kernel-arch | ||
43 | |||
44 | KORG_ARCHIVE_COMPRESSION ?= "bz2" | ||
45 | |||
46 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.${KORG_ARCHIVE_COMPRESSION}" | ||
47 | |||
48 | S = "${WORKDIR}/linux-${PV}" | ||
49 | |||
50 | do_configure() { | ||
51 | oe_runmake allnoconfig | ||
52 | } | ||
53 | |||
54 | do_compile () { | ||
55 | } | ||
56 | |||
57 | do_install() { | ||
58 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} | ||
59 | # Kernel should not be exporting this header | ||
60 | rm -f ${D}${exec_prefix}/include/scsi/scsi.h | ||
61 | |||
62 | # The ..install.cmd conflicts between various configure runs | ||
63 | find ${D}${includedir} -name ..install.cmd | xargs rm -f | ||
64 | } | ||
65 | |||
66 | BBCLASSEXTEND = "nativesdk" | ||
67 | |||
68 | #DEPENDS = "cross-linkage" | ||
69 | RDEPENDS_${PN}-dev = "" | ||
70 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | ||
71 | |||
72 | INHIBIT_DEFAULT_DEPS = "1" | ||
73 | DEPENDS += "unifdef-native" | ||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb new file mode 100644 index 0000000000..9ac70af942 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.14.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | KORG_ARCHIVE_COMPRESSION = "xz" | ||
2 | |||
3 | require linux-libc-headers.inc | ||
4 | |||
5 | SRC_URI[md5sum] = "b621207b3f6ecbb67db18b13258f8ea8" | ||
6 | SRC_URI[sha256sum] = "61558aa490855f42b6340d1a1596be47454909629327c49a5e4e10268065dffa" | ||
7 | |||