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 | 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 | ||