From 5aa973d8a623642a573d5cc88425835380a4e5a4 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Sat, 4 Dec 2004 04:18:18 +0000 Subject: Set PACKAGE_ARCH correctly in kernel.oeclass and module-base.oeclass. BKrev: 41b13a8adI35NYPM2CtPyMXKQxhXqA --- classes/kernel.oeclass | 6 +----- classes/module-base.oeclass | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'classes') diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass index cc1aa87877..dead95132e 100644 --- a/classes/kernel.oeclass +++ b/classes/kernel.oeclass @@ -44,11 +44,7 @@ def get_kernelversion(p): KERNEL_VERSION = "${@get_kernelversion('${S}/include/linux/version.h')}" # kernels are generally machine specific -python () { - mach = oe.data.getVar('MACHINE', d, 1) - if mach: - oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d) -} +PACKAGE_ARCH := "${MACHINE_ARCH}" kernel_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS diff --git a/classes/module-base.oeclass b/classes/module-base.oeclass index 0036ddf20c..2b8cd34b48 100644 --- a/classes/module-base.oeclass +++ b/classes/module-base.oeclass @@ -13,8 +13,4 @@ KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" # kernel modules are generally machine specific -python () { - mach = oe.data.getVar('MACHINE', d, 1) - if mach: - oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d) -} +PACKAGE_ARCH := "${MACHINE_ARCH}" -- cgit v1.2.3