From 0098bd1eaddd1831aae8d14d725c9835e88f4aad Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 2 Dec 2004 07:06:01 +0000 Subject: Set PACKAGE_ARCH to MACHINE_ARCH in the sharp camera support .oe. BKrev: 41aebed9zeTrYAAcx2sJqlVCUGrSMQ --- sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe | 5 +++++ sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe b/sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe index 4af9476468..ef2bab794a 100644 --- a/sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe +++ b/sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe @@ -23,3 +23,8 @@ do_install() { FILES_${PN} = "/" +python () { + mach = oe.data.getVar('MACHINE', d, 1) + if mach: + oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d) +} diff --git a/sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe b/sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe index 8cf9d2dde0..a56b6a440c 100644 --- a/sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe +++ b/sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe @@ -26,5 +26,10 @@ do_install() { install -m 0644 ${MACHINE}/sharp_mmcsd_m.o ${D}/lib/modules/${PV}/kernel/drivers/block/ } -PACKAGE_ARCH = ${MACHINE_ARCH} FILES_${PN} = "/" + +python () { + mach = oe.data.getVar('MACHINE', d, 1) + if mach: + oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d) +} -- cgit v1.2.3