summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-07-29 17:59:51 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-07-29 17:59:51 +0000
commit9e69cc753ec5d5a1a8d702356fad0e6e43ff6323 (patch)
treea31e636aaf4cea90b23396033c334d207308feb2
parent9af3be32f7933e7b301cbdd106edad0c10711870 (diff)
base.bbclass: Only take the slow path if SRC_URI_OVERRIDES_PACKAGE_ARCH is actually set to something
-rw-r--r--classes/base.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index d0083bdc54..fec7622f18 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -825,8 +825,11 @@ def base_after_parse(d):
if (old_arch == mach_arch):
# Nothing to do
return
- if (bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) == '0'):
+ override = bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1)
+
+ if not override or override == '0':
return
+
paths = []
for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
paths.append(bb.data.expand(os.path.join(p, mach_arch), d))