summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2012-06-20 10:54:54 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-21 13:03:04 +0100
commit984b0dc8d40024ea2cc0f710e3c972f7e452a4b0 (patch)
treecd46ea1c584660ba65abdb1ec4eb6ed9eef004fa /meta/recipes-kernel/linux-libc-headers
parentc0b54eb457b682b082d7cd4ebc5d1801eaeba85f (diff)
downloadpoky-984b0dc8d40024ea2cc0f710e3c972f7e452a4b0.tar.gz
linux-libc-headers: use kernel-arch to set ARCH
linux-libc-headers no longer needs its own ARCH mapping code, since the mapping done in kernel-arch works and we can consolidate all arch mapping code in a single place. (From OE-Core rev: 7d73cfb2ae24ad2b694244c56dd4648ba7e2df11) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc30
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
15inherit kernel-arch
16
15SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2" 17SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2"
16 18
17S = "${WORKDIR}/linux-${PV}" 19S = "${WORKDIR}/linux-${PV}"
18 20
19set_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
41do_configure() { 21do_configure() {
42 set_arch 22 oe_runmake allnoconfig
43 oe_runmake allnoconfig ARCH=$ARCH
44} 23}
45 24
46do_compile () { 25do_compile () {
47} 26}
48 27
49do_install() { 28do_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