summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-20 08:56:52 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-20 08:56:52 +0000
commit8174ba42226d2e590879c0adb03272c35b1b9946 (patch)
treeeb82864a134daa2b878360a7a09e1be5d269a79f /meta/classes
parentff233491914f19404f3a203d24be249dcd2f9bbf (diff)
downloadopenembedded-core-8174ba42226d2e590879c0adb03272c35b1b9946.tar.gz
openembedded-core-8174ba42226d2e590879c0adb03272c35b1b9946.tar.bz2
openembedded-core-8174ba42226d2e590879c0adb03272c35b1b9946.zip
kernel.bbclass: Unset MACHINE to avoid problems
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@874 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 3a7fd5b499..13381740a1 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/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