e58e8775e43ef5a5d5363d22fcebf5fceaeea5b3
[vuplus_openvuplus_3.0] / 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 S = "${WORKDIR}/linux-${PV}"
10
11 set_arch() {
12         case ${TARGET_ARCH} in
13                 alpha*)   ARCH=alpha ;;
14                 arm*)     ARCH=arm ;;
15                 cris*)    ARCH=cris ;;
16                 hppa*)    ARCH=parisc ;;
17                 i*86*)    ARCH=i386 ;;
18                 ia64*)    ARCH=ia64 ;;
19                 mips*)    ARCH=mips ;;
20                 m68k*)    ARCH=m68k ;;
21                 powerpc*) ARCH=powerpc ;;
22                 s390*)    ARCH=s390 ;;
23                 sh*)      ARCH=sh ;;
24                 sparc64*) ARCH=sparc64 ;;
25                 sparc*)   ARCH=sparc ;;
26                 x86_64*)  ARCH=x86_64 ;;
27                 avr32*)   ARCH=avr32 ;;
28                 bfin*)    ARCH=blackfin ;;
29                 microblaze*) ARCH=microblaze ;;
30         esac
31 }
32
33 do_configure() {
34         set_arch
35         oe_runmake allnoconfig ARCH=$ARCH
36 }
37
38 do_compile () {
39 }
40
41 do_install() {
42         set_arch
43         oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
44         # Kernel should not be exporting this header
45         rm -f ${D}${exec_prefix}/include/scsi/scsi.h
46
47         # The ..install.cmd conflicts between various configure runs
48         find ${D}${includedir} -name ..install.cmd | xargs rm -f
49 }
50
51 BBCLASSEXTEND = "nativesdk"
52
53 #DEPENDS = "cross-linkage"
54 RDEPENDS_${PN}-dev = ""
55 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
56
57 INHIBIT_DEFAULT_DEPS = "1"
58 DEPENDS += "unifdef-native"