summaryrefslogtreecommitdiff
path: root/sysvinit
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit')
-rw-r--r--sysvinit/sysvinit_2.85.oe8
-rw-r--r--sysvinit/sysvinit_2.86.oe8
2 files changed, 6 insertions, 10 deletions
diff --git a/sysvinit/sysvinit_2.85.oe b/sysvinit/sysvinit_2.85.oe
index b1c2c01cc0..149e186537 100644
--- a/sysvinit/sysvinit_2.85.oe
+++ b/sysvinit/sysvinit_2.85.oe
@@ -10,11 +10,9 @@ FILES_${PN} = "/sbin ${bindir} ${sysconfdir}"
FILES_sysv-rc = "${sbindir}"
PR = "r1"
-python () {
- mach = oe.data.getVar('MACHINE', d, 1)
- if mach:
- oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d)
-}
+# USE_VT and SERIAL_CONSLE are generally defined by the MACHINE .conf.
+# Set PACKAGE_ARCH appropriately.
+PACKAGE_ARCH := "${MACHINE_ARCH}"
USE_VT ?= "1"
diff --git a/sysvinit/sysvinit_2.86.oe b/sysvinit/sysvinit_2.86.oe
index da081f401b..4c698c7aa5 100644
--- a/sysvinit/sysvinit_2.86.oe
+++ b/sysvinit/sysvinit_2.86.oe
@@ -7,11 +7,9 @@ HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
FILES_${PN} += "/sbin /bin"
PR = "r0"
-python () {
- mach = oe.data.getVar('MACHINE', d, 1)
- if mach:
- oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d)
-}
+# USE_VT and SERIAL_CONSLE are generally defined by the MACHINE .conf.
+# Set PACKAGE_ARCH appropriately.
+PACKAGE_ARCH := "${MACHINE_ARCH}"
USE_VT ?= "1"