diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2011-10-27 10:32:47 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-01 17:43:57 +0000 |
| commit | 4950afe5756ace5801f445b0a8e94d8151c0ecb7 (patch) | |
| tree | b24c7da2dcb6fcd48945d0ba38f8d21229d3fda3 /meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |
| parent | 18ab6c98e4b3bb9b20f3c9bb81b1d58ffd8b143b (diff) | |
| download | poky-4950afe5756ace5801f445b0a8e94d8151c0ecb7.tar.gz | |
linux-libc-headers: factor common code into linux-libc-headers.inc
Each time a new linux-libc-headers is created the same code is
cloned. Placing the common functionality in the .inc file simplies
each recipe and make maintenance easier.
(From OE-Core rev: ccf3bf70a1a83ac55e47acfa4759838f7f4834ae)
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | 47 |
1 files changed, 47 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 index 014024f460..e586ac301e 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
| @@ -5,6 +5,53 @@ LICENSE = "GPLv2" | |||
| 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 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2" |
| 7 | 7 | ||
| 8 | S = "${WORKDIR}/linux-${PV}" | ||
| 9 | |||
| 10 | set_arch() { | ||
| 11 | case ${TARGET_ARCH} in | ||
| 12 | alpha*) ARCH=alpha ;; | ||
| 13 | arm*) ARCH=arm ;; | ||
| 14 | cris*) ARCH=cris ;; | ||
| 15 | hppa*) ARCH=parisc ;; | ||
| 16 | i*86*) ARCH=i386 ;; | ||
| 17 | ia64*) ARCH=ia64 ;; | ||
| 18 | mips*) ARCH=mips ;; | ||
| 19 | m68k*) ARCH=m68k ;; | ||
| 20 | powerpc*) ARCH=powerpc ;; | ||
| 21 | s390*) ARCH=s390 ;; | ||
| 22 | sh*) ARCH=sh ;; | ||
| 23 | sparc64*) ARCH=sparc64 ;; | ||
| 24 | sparc*) ARCH=sparc ;; | ||
| 25 | x86_64*) ARCH=x86_64 ;; | ||
| 26 | avr32*) ARCH=avr32 ;; | ||
| 27 | bfin*) ARCH=blackfin ;; | ||
| 28 | microblaze*) ARCH=microblaze ;; | ||
| 29 | esac | ||
| 30 | } | ||
| 31 | |||
| 32 | do_configure() { | ||
| 33 | set_arch | ||
| 34 | oe_runmake allnoconfig ARCH=$ARCH | ||
| 35 | } | ||
| 36 | |||
| 37 | do_compile () { | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install() { | ||
| 41 | set_arch | ||
| 42 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH | ||
| 43 | # Kernel should not be exporting this header | ||
| 44 | rm -f ${D}${exec_prefix}/include/scsi/scsi.h | ||
| 45 | |||
| 46 | # The ..install.cmd conflicts between various configure runs | ||
| 47 | find ${D}${includedir} -name ..install.cmd | xargs rm -f | ||
| 48 | } | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "nativesdk" | ||
| 51 | |||
| 8 | #DEPENDS = "cross-linkage" | 52 | #DEPENDS = "cross-linkage" |
| 9 | RDEPENDS_${PN}-dev = "" | 53 | RDEPENDS_${PN}-dev = "" |
| 10 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | 54 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
| 55 | |||
| 56 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 57 | DEPENDS += "unifdef-native" \ No newline at end of file | ||
