From: Richard Purdie Date: Mon, 20 Nov 2006 14:33:49 +0000 (+0000) Subject: kernel.bbclass: unset MACHINE otherwise things break (from poky) X-Git-Tag: Release-2010-05/1~9453^2~398^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0448ec0dcdb422675e2e6595e44cbd09bc7695c9;p=openembedded.git kernel.bbclass: unset MACHINE otherwise things break (from poky) --- diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 3a7fd5b499..13381740a1 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -52,7 +52,7 @@ KERNEL_LOCALVERSION ?= "" PACKAGE_ARCH = "${MACHINE_ARCH}" kernel_do_compile() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" @@ -135,7 +135,7 @@ kernel_do_stage() { } kernel_do_install() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install else