Set PACKAGE_ARCH to MACHINE_ARCH in the sharp camera support .oe.
authorChris Larson <clarson@kergoth.com>
Thu, 2 Dec 2004 07:06:01 +0000 (07:06 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 2 Dec 2004 07:06:01 +0000 (07:06 +0000)
BKrev: 41aebed9zeTrYAAcx2sJqlVCUGrSMQ

sharp-binary-only/sharp-camera-support_2.4.18-rmk7-pxa3-embedix.oe
sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.oe

index 4af9476..ef2bab7 100644 (file)
@@ -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)
+}
index 8cf9d2d..a56b6a4 100644 (file)
@@ -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)
+}