summaryrefslogtreecommitdiffstats
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
parentff233491914f19404f3a203d24be249dcd2f9bbf (diff)
downloadpoky-8174ba42226d2e590879c0adb03272c35b1b9946.tar.gz
kernel.bbclass: Unset MACHINE to avoid problems
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@874 311d38ba-8fff-0310-9ca6-ca027cbcb966
-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 ?= ""
52PACKAGE_ARCH = "${MACHINE_ARCH}" 52PACKAGE_ARCH = "${MACHINE_ARCH}"
53 53
54kernel_do_compile() { 54kernel_do_compile() {
55 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 55 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
56 oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" 56 oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}"
57 if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then 57 if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then
58 oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" 58 oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
@@ -135,7 +135,7 @@ kernel_do_stage() {
135} 135}
136 136
137kernel_do_install() { 137kernel_do_install() {
138 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 138 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
139 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then 139 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
140 oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install 140 oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install
141 else 141 else