summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
diff options
context:
space:
mode:
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.inc47
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"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2" 6SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v2.6/linux-${PV}.tar.bz2"
7 7
8S = "${WORKDIR}/linux-${PV}"
9
10set_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
32do_configure() {
33 set_arch
34 oe_runmake allnoconfig ARCH=$ARCH
35}
36
37do_compile () {
38}
39
40do_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
50BBCLASSEXTEND = "nativesdk"
51
8#DEPENDS = "cross-linkage" 52#DEPENDS = "cross-linkage"
9RDEPENDS_${PN}-dev = "" 53RDEPENDS_${PN}-dev = ""
10RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" 54RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
55
56INHIBIT_DEFAULT_DEPS = "1"
57DEPENDS += "unifdef-native" \ No newline at end of file