linux-libc-headers-yocto: use kernel-arch to set ARCH
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. (From meta-yocto rev: 4978935df1c59afdaeeb2f975647d4b6c9b7a9c3) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
93d890fcf0
commit
58fcd84206
|
@ -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
|
# building a device tree as part of kern headers
|
||||||
KERNEL_DEVICETREE = ""
|
KERNEL_DEVICETREE = ""
|
||||||
|
|
||||||
set_arch() {
|
inherit kernel-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
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
set_arch
|
oe_runmake allnoconfig
|
||||||
oe_runmake allnoconfig ARCH=$ARCH
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
set_arch
|
oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}
|
||||||
oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
|
|
||||||
|
|
||||||
# The ..install.cmd conflicts between various configure runs
|
# The ..install.cmd conflicts between various configure runs
|
||||||
find ${D}${includedir} -name ..install.cmd | xargs rm -f
|
find ${D}${includedir} -name ..install.cmd | xargs rm -f
|
||||||
|
|
Loading…
Reference in New Issue