aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-05-23 20:15:01 -0700
committerChris Larson <chris_larson@mentor.com>2010-05-23 20:36:49 -0700
commit9e028bae96b39f7e3a800572e2fa4ad1b4ce006f (patch)
treebfad71fa8b74f4c769af3cd96cb4f6fc34ad4408 /classes
parent384419b47227e410d99aa0d32b256ed7b4d780d4 (diff)
downloadopenembedded-9e028bae96b39f7e3a800572e2fa4ad1b4ce006f.tar.gz
amend.bbclass: load *all* available amend.inc files in FILESPATH, not the first
While this deviates from ordinary BBPATH/FILESPATH behavior by bitbake and OpenEmbedded, amend.inc is a special case. It's highly unintuitive for someone to create, say, files/busybox/amend.inc relative to TOPDIR, with ${TOPDIR}/files in FILESPATHBASE, and suddenly things break, because that amend.inc overrides one in an overlay. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/amend.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/classes/amend.bbclass b/classes/amend.bbclass
index bcb93d4e75..cddd28caea 100644
--- a/classes/amend.bbclass
+++ b/classes/amend.bbclass
@@ -21,9 +21,7 @@ python () {
depends = d.getVar("__depends", 0) or []
d.setVar("__depends", depends + [(file, 0) for file in amendfiles if not os.path.exists(file)])
- existing = (file for file in amendfiles if os.path.exists(file))
- try:
- bb.parse.handle(existing.next(), d, 1)
- except StopIteration:
- pass
+ for file in amendfiles:
+ if os.path.exists(file):
+ bb.parse.handle(file, d, 1)
}