]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
linux-libc-headers-yocto: use kernel-arch to set ARCH
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 20 Jun 2012 13:49:15 +0000 (09:49 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Jun 2012 14:31:31 +0000 (15:31 +0100)
The arch mapping done in kernel-arch should be used instead of
recipe local mapping. Inheriting kernel-arch consolidates the
code and simplifies the libc-header recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb

index 756b5969134deb98d313169009a625d9e601a2c7..831e4522bb7d1059534ccd49a3095362f307c75b 100644 (file)
@@ -20,25 +20,14 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;nocheckout=1;
 # building a device tree as part of kern headers
 KERNEL_DEVICETREE = ""
 
-set_arch() {
-       case ${TARGET_ARCH} in
-               arm*)     ARCH=arm ;;
-               i*86*)    ARCH=i386 ;;
-               ia64*)    ARCH=ia64 ;;
-               mips*)    ARCH=mips ;;
-               powerpc*) ARCH=powerpc ;;
-               x86_64*)  ARCH=x86_64 ;;
-       esac
-}
+inherit kernel-arch
 
 do_configure() {
-       set_arch
-       oe_runmake allnoconfig ARCH=$ARCH
+       oe_runmake allnoconfig
 }
 
 do_install() {
-       set_arch
-       oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
+       oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}
 
         # The ..install.cmd conflicts between various configure runs
         find ${D}${includedir} -name ..install.cmd | xargs rm -f