aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-01 03:07:30 +0000
committerChris Larson <clarson@kergoth.com>2004-12-01 03:07:30 +0000
commit9c94082f4530a9dca6c45b228be3e623a550065a (patch)
treece16864e4a44901be9331e7ae9ca8a4569531ac7 /classes
parent71b543a2898ec5e279d29a00ef8608f92f7aafb7 (diff)
downloadopenembedded-9c94082f4530a9dca6c45b228be3e623a550065a.tar.gz
Make the package_frob_arch bits in package.oeclass an anonymous function rather than one called in a task.
BKrev: 41ad3572SONY0tmizh1p3Mte2DwzJQ
Diffstat (limited to 'classes')
-rw-r--r--classes/package.oeclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/classes/package.oeclass b/classes/package.oeclass
index 443c057147..db95b27e34 100644
--- a/classes/package.oeclass
+++ b/classes/package.oeclass
@@ -76,7 +76,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
oe.data.setVar('PACKAGES', ' '.join(packages), d)
-def package_frob_arch(d):
+python () {
import oe, os
machine = oe.data.getVar('MACHINE', d, 1)
if not machine:
@@ -93,12 +93,13 @@ def package_frob_arch(d):
local = oe.data.expand(oe.fetch.localpath(s, d), d)
for mp in paths:
if local.startswith(mp):
- oe.note("overriding PACKAGE_ARCH from %s to %s" % (old_arch, machine))
+# oe.note("overriding PACKAGE_ARCH from %s to %s" % (old_arch, machine))
oe.data.setVar('PACKAGE_ARCH', machine, d)
return
+}
python populate_packages () {
- import glob, copy, stat, errno, re
+ import glob, stat, errno, re
workdir = oe.data.getVar('WORKDIR', d, 1)
if not workdir:
@@ -128,8 +129,6 @@ python populate_packages () {
oe.error("PN not defined")
return
- package_frob_arch(d)
-
os.chdir(dvar)
def isexec(path):