diff options
| -rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 30 |
1 files changed, 4 insertions, 26 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 4137be1a45..962ca757cd 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
| @@ -12,43 +12,21 @@ python __anonymous () { | |||
| 12 | d.setVar("HEADER_FETCH_VER", "2.6") | 12 | d.setVar("HEADER_FETCH_VER", "2.6") |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | inherit kernel-arch | ||
| 16 | |||
| 15 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2" | 17 | SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2" |
| 16 | 18 | ||
| 17 | S = "${WORKDIR}/linux-${PV}" | 19 | S = "${WORKDIR}/linux-${PV}" |
| 18 | 20 | ||
| 19 | set_arch() { | ||
| 20 | case ${TARGET_ARCH} in | ||
| 21 | alpha*) ARCH=alpha ;; | ||
| 22 | arm*) ARCH=arm ;; | ||
| 23 | cris*) ARCH=cris ;; | ||
| 24 | hppa*) ARCH=parisc ;; | ||
| 25 | i*86*) ARCH=i386 ;; | ||
| 26 | ia64*) ARCH=ia64 ;; | ||
| 27 | mips*) ARCH=mips ;; | ||
| 28 | m68k*) ARCH=m68k ;; | ||
| 29 | powerpc*) ARCH=powerpc ;; | ||
| 30 | s390*) ARCH=s390 ;; | ||
| 31 | sh*) ARCH=sh ;; | ||
| 32 | sparc64*) ARCH=sparc64 ;; | ||
| 33 | sparc*) ARCH=sparc ;; | ||
| 34 | x86_64*) ARCH=x86_64 ;; | ||
| 35 | avr32*) ARCH=avr32 ;; | ||
| 36 | bfin*) ARCH=blackfin ;; | ||
| 37 | microblaze*) ARCH=microblaze ;; | ||
| 38 | esac | ||
| 39 | } | ||
| 40 | |||
| 41 | do_configure() { | 21 | do_configure() { |
| 42 | set_arch | 22 | oe_runmake allnoconfig |
| 43 | oe_runmake allnoconfig ARCH=$ARCH | ||
| 44 | } | 23 | } |
| 45 | 24 | ||
| 46 | do_compile () { | 25 | do_compile () { |
| 47 | } | 26 | } |
| 48 | 27 | ||
| 49 | do_install() { | 28 | do_install() { |
| 50 | set_arch | 29 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} |
| 51 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH | ||
| 52 | # Kernel should not be exporting this header | 30 | # Kernel should not be exporting this header |
| 53 | rm -f ${D}${exec_prefix}/include/scsi/scsi.h | 31 | rm -f ${D}${exec_prefix}/include/scsi/scsi.h |
| 54 | 32 | ||
