summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-01-27 19:13:15 +0000
committerPhil Blundell <philb@gnu.org>2005-01-27 19:13:15 +0000
commita5669c1f9c38182f5a76cbde93dfc433a739009c (patch)
tree5d2b5c9f19a6f107ed3c98b260ec20bf648c3ba5
parent8f06b6d2b68d7f173171474bb8cefd462f1298bf (diff)
turn off SRC_URI-based PACKAGE_ARCH mangling if requested
BKrev: 41f93d4bA7UVxRqWKvjaoryoPbopfQ
-rw-r--r--classes/base.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 8c92ed6f76..6686d2eab0 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -702,6 +702,8 @@ python () {
if (old_arch == mach_arch):
# Nothing to do
return
+ if (bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) == '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))