moved the linux-libc-header package from mips32el to the machine archive.
[vuplus_openvuplus] / meta-openvuplus / recipes-kernel / linux-libc-headers / linux-libc-headers.inc
1 DESCRIPTION = "Sanitized set of kernel headers for the C library's use."
2 SECTION = "devel"
3 LICENSE = "GPLv2"
4
5 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6
7 SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v3.0/linux-${PV}.tar.bz2"
8
9 PACKAGE_ARCH = "${MACHINE_ARCH}"
10
11 S = "${WORKDIR}/linux-${PV}"
12
13 set_arch() {
14         case ${TARGET_ARCH} in
15                 alpha*)   ARCH=alpha ;;
16                 arm*)     ARCH=arm ;;
17                 cris*)    ARCH=cris ;;
18                 hppa*)    ARCH=parisc ;;
19                 i*86*)    ARCH=i386 ;;
20                 ia64*)    ARCH=ia64 ;;
21                 mips*)    ARCH=mips ;;
22                 m68k*)    ARCH=m68k ;;
23                 powerpc*) ARCH=powerpc ;;
24                 s390*)    ARCH=s390 ;;
25                 sh*)      ARCH=sh ;;
26                 sparc64*) ARCH=sparc64 ;;
27                 sparc*)   ARCH=sparc ;;
28                 x86_64*)  ARCH=x86_64 ;;
29                 avr32*)   ARCH=avr32 ;;
30                 bfin*)    ARCH=blackfin ;;
31                 microblaze*) ARCH=microblaze ;;
32         esac
33 }
34
35 do_configure() {
36         set_arch
37         oe_runmake allnoconfig ARCH=$ARCH
38 }
39
40 do_compile () {
41 }
42
43 do_install() {
44         set_arch
45         oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
46         # Kernel should not be exporting this header
47         rm -f ${D}${exec_prefix}/include/scsi/scsi.h
48
49         # The ..install.cmd conflicts between various configure runs
50         find ${D}${includedir} -name ..install.cmd | xargs rm -f
51 }
52
53 BBCLASSEXTEND = "nativesdk"
54
55 #DEPENDS = "cross-linkage"
56 RDEPENDS_${PN}-dev = ""
57 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
58
59 INHIBIT_DEFAULT_DEPS = "1"
60 DEPENDS += "unifdef-native"