diff options
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc')
| -rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 17 |
1 files changed, 13 insertions, 4 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 index e586ac301e..4137be1a45 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
| @@ -1,9 +1,18 @@ | |||
| 1 | DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use." | 1 | DESCRIPTION = "Sanitized set of kernel headers for the C library's use." |
| 2 | SECTION = "devel" | 2 | SECTION = "devel" |
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | 4 | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 6 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2" | 6 | |
| 7 | python __anonymous () { | ||
| 8 | major = d.getVar("PV",True).split('.')[0] | ||
| 9 | if major == "3": | ||
| 10 | d.setVar("HEADER_FETCH_VER", "3.0") | ||
| 11 | else: | ||
| 12 | d.setVar("HEADER_FETCH_VER", "2.6") | ||
| 13 | } | ||
| 14 | |||
| 15 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2" | ||
| 7 | 16 | ||
| 8 | S = "${WORKDIR}/linux-${PV}" | 17 | S = "${WORKDIR}/linux-${PV}" |
| 9 | 18 | ||
| @@ -54,4 +63,4 @@ RDEPENDS_${PN}-dev = "" | |||
| 54 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | 63 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
| 55 | 64 | ||
| 56 | INHIBIT_DEFAULT_DEPS = "1" | 65 | INHIBIT_DEFAULT_DEPS = "1" |
| 57 | DEPENDS += "unifdef-native" \ No newline at end of file | 66 | DEPENDS += "unifdef-native" |
