diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index a1cd4d750e..707384aa68 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -941,16 +941,21 @@ class BBCooker: collectlog.error("no recipe files to build, check your BBPATH and BBFILES?") bb.event.fire(CookerExit(), self.configuration.event_data) - newfiles = set() + # Can't use set here as order is important + newfiles = [] for f in files: if os.path.isdir(f): dirfiles = self.find_bbfiles(f) - newfiles.update(dirfiles) + for g in dirfiles: + if g not in newfiles: + newfiles.append(g) else: globbed = glob.glob(f) if not globbed and os.path.exists(f): globbed = [f] - newfiles.update(globbed) + for g in globbed: + if g not in newfiles: + newfiles.append(g) bbmask = bb.data.getVar('BBMASK', self.configuration.data, 1) |