blob: 24bf09c56bf5f68e42fa2bc648c09af210975d58 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# Copyright (C) 2003, 2004 Chris Larson
3# Copyright (C) 2003, 2004 Phil Blundell
4# Copyright (C) 2003 - 2005 Michael 'Mickey' Lauer
5# Copyright (C) 2005 Holger Hans Peter Freyther
6# Copyright (C) 2005 ROAD GmbH
7# Copyright (C) 2006 Richard Purdie
8#
Brad Bishopc342db32019-05-15 21:57:59 -04009# SPDX-License-Identifier: GPL-2.0-only
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010#
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012import logging
Patrick Williamsc0f7c042017-02-23 20:41:17 -060013import os
14import re
15import sys
Brad Bishop00e122a2019-10-05 11:10:57 -040016import hashlib
Patrick Williamsc0f7c042017-02-23 20:41:17 -060017from functools import wraps
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018import bb
19from bb import data
20import bb.parse
21
22logger = logging.getLogger("BitBake")
23parselog = logging.getLogger("BitBake.Parsing")
24
25class ConfigParameters(object):
26 def __init__(self, argv=sys.argv):
27 self.options, targets = self.parseCommandLine(argv)
28 self.environment = self.parseEnvironment()
29
30 self.options.pkgs_to_build = targets or []
31
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032 for key, val in self.options.__dict__.items():
33 setattr(self, key, val)
34
35 def parseCommandLine(self, argv=sys.argv):
36 raise Exception("Caller must implement commandline option parsing")
37
38 def parseEnvironment(self):
39 return os.environ.copy()
40
41 def updateFromServer(self, server):
42 if not self.options.cmd:
43 defaulttask, error = server.runCommand(["getVariable", "BB_DEFAULT_TASK"])
44 if error:
45 raise Exception("Unable to get the value of BB_DEFAULT_TASK from the server: %s" % error)
46 self.options.cmd = defaulttask or "build"
47 _, error = server.runCommand(["setConfig", "cmd", self.options.cmd])
48 if error:
49 raise Exception("Unable to set configuration option 'cmd' on the server: %s" % error)
50
51 if not self.options.pkgs_to_build:
Patrick Williamsf1e5d692016-03-30 15:21:19 -050052 bbpkgs, error = server.runCommand(["getVariable", "BBTARGETS"])
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053 if error:
Patrick Williamsf1e5d692016-03-30 15:21:19 -050054 raise Exception("Unable to get the value of BBTARGETS from the server: %s" % error)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050055 if bbpkgs:
56 self.options.pkgs_to_build.extend(bbpkgs.split())
57
58 def updateToServer(self, server, environment):
59 options = {}
Brad Bishopd7bf8c12018-02-25 22:55:05 -050060 for o in ["abort", "force", "invalidate_stamp",
61 "verbose", "debug", "dry_run", "dump_signatures",
Patrick Williamsc124f4f2015-09-15 14:41:29 -050062 "debug_domains", "extra_assume_provided", "profile",
Brad Bishopd7bf8c12018-02-25 22:55:05 -050063 "prefile", "postfile", "server_timeout"]:
Patrick Williamsc124f4f2015-09-15 14:41:29 -050064 options[o] = getattr(self.options, o)
65
Brad Bishop6e60e8b2018-02-01 10:27:11 -050066 ret, error = server.runCommand(["updateConfig", options, environment, sys.argv])
Patrick Williamsc124f4f2015-09-15 14:41:29 -050067 if error:
Brad Bishopd7bf8c12018-02-25 22:55:05 -050068 raise Exception("Unable to update the server configuration with local parameters: %s" % error)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050069
70 def parseActions(self):
71 # Parse any commandline into actions
72 action = {'action':None, 'msg':None}
73 if self.options.show_environment:
74 if 'world' in self.options.pkgs_to_build:
75 action['msg'] = "'world' is not a valid target for --environment."
76 elif 'universe' in self.options.pkgs_to_build:
77 action['msg'] = "'universe' is not a valid target for --environment."
78 elif len(self.options.pkgs_to_build) > 1:
79 action['msg'] = "Only one target can be used with the --environment option."
80 elif self.options.buildfile and len(self.options.pkgs_to_build) > 0:
81 action['msg'] = "No target should be used with the --environment and --buildfile options."
82 elif len(self.options.pkgs_to_build) > 0:
83 action['action'] = ["showEnvironmentTarget", self.options.pkgs_to_build]
84 else:
85 action['action'] = ["showEnvironment", self.options.buildfile]
86 elif self.options.buildfile is not None:
87 action['action'] = ["buildFile", self.options.buildfile, self.options.cmd]
88 elif self.options.revisions_changed:
89 action['action'] = ["compareRevisions"]
90 elif self.options.show_versions:
91 action['action'] = ["showVersions"]
92 elif self.options.parse_only:
93 action['action'] = ["parseFiles"]
94 elif self.options.dot_graph:
95 if self.options.pkgs_to_build:
96 action['action'] = ["generateDotGraph", self.options.pkgs_to_build, self.options.cmd]
97 else:
98 action['msg'] = "Please specify a package name for dependency graph generation."
99 else:
100 if self.options.pkgs_to_build:
101 action['action'] = ["buildTargets", self.options.pkgs_to_build, self.options.cmd]
102 else:
103 #action['msg'] = "Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information."
104 action = None
105 self.options.initialaction = action
106 return action
107
108class CookerConfiguration(object):
109 """
110 Manages build options and configurations for one run
111 """
112
113 def __init__(self):
114 self.debug_domains = []
115 self.extra_assume_provided = []
116 self.prefile = []
117 self.postfile = []
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500118 self.debug = 0
119 self.cmd = None
120 self.abort = True
121 self.force = False
122 self.profile = False
123 self.nosetscene = False
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500124 self.setsceneonly = False
Brad Bishop96ff1982019-08-19 13:50:42 -0400125 self.skipsetscene = False
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500126 self.invalidate_stamp = False
127 self.dump_signatures = []
128 self.dry_run = False
129 self.tracking = False
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500130 self.xmlrpcinterface = []
131 self.server_timeout = None
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500132 self.writeeventlog = False
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500133 self.server_only = False
134 self.limited_deps = False
Brad Bishop316dfdd2018-06-25 12:45:53 -0400135 self.runall = []
136 self.runonly = []
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500137
138 self.env = {}
139
140 def setConfigParameters(self, parameters):
141 for key in self.__dict__.keys():
142 if key in parameters.options.__dict__:
143 setattr(self, key, parameters.options.__dict__[key])
144 self.env = parameters.environment.copy()
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500145
146 def setServerRegIdleCallback(self, srcb):
147 self.server_register_idlecallback = srcb
148
149 def __getstate__(self):
150 state = {}
151 for key in self.__dict__.keys():
152 if key == "server_register_idlecallback":
153 state[key] = None
154 else:
155 state[key] = getattr(self, key)
156 return state
157
158 def __setstate__(self,state):
159 for k in state:
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500160 setattr(self, k, state[k])
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500161
162
163def catch_parse_error(func):
164 """Exception handling bits for our parsing"""
165 @wraps(func)
166 def wrapped(fn, *args):
167 try:
168 return func(fn, *args)
169 except IOError as exc:
170 import traceback
171 parselog.critical(traceback.format_exc())
172 parselog.critical("Unable to parse %s: %s" % (fn, exc))
173 sys.exit(1)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500174 except bb.data_smart.ExpansionError as exc:
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500175 import traceback
176
177 bbdir = os.path.dirname(__file__) + os.sep
178 exc_class, exc, tb = sys.exc_info()
179 for tb in iter(lambda: tb.tb_next, None):
180 # Skip frames in bitbake itself, we only want the metadata
181 fn, _, _, _ = traceback.extract_tb(tb, 1)[0]
182 if not fn.startswith(bbdir):
183 break
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600184 parselog.critical("Unable to parse %s" % fn, exc_info=(exc_class, exc, tb))
185 sys.exit(1)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500186 except bb.parse.ParseError as exc:
187 parselog.critical(str(exc))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500188 sys.exit(1)
189 return wrapped
190
191@catch_parse_error
192def parse_config_file(fn, data, include=True):
193 return bb.parse.handle(fn, data, include)
194
195@catch_parse_error
196def _inherit(bbclass, data):
197 bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data)
198 return data
199
200def findConfigFile(configfile, data):
201 search = []
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500202 bbpath = data.getVar("BBPATH")
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500203 if bbpath:
204 for i in bbpath.split(":"):
205 search.append(os.path.join(i, "conf", configfile))
206 path = os.getcwd()
207 while path != "/":
208 search.append(os.path.join(path, "conf", configfile))
209 path, _ = os.path.split(path)
210
211 for i in search:
212 if os.path.exists(i):
213 return i
214
215 return None
216
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500217#
218# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working
219# up to /. If that fails, we search for a conf/bitbake.conf in BBPATH.
220#
221
222def findTopdir():
223 d = bb.data.init()
224 bbpath = None
225 if 'BBPATH' in os.environ:
226 bbpath = os.environ['BBPATH']
227 d.setVar('BBPATH', bbpath)
228
229 layerconf = findConfigFile("bblayers.conf", d)
230 if layerconf:
231 return os.path.dirname(os.path.dirname(layerconf))
232 if bbpath:
233 bitbakeconf = bb.utils.which(bbpath, "conf/bitbake.conf")
234 if bitbakeconf:
235 return os.path.dirname(os.path.dirname(bitbakeconf))
236 return None
237
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500238class CookerDataBuilder(object):
239
240 def __init__(self, cookercfg, worker = False):
241
242 self.prefiles = cookercfg.prefile
243 self.postfiles = cookercfg.postfile
244 self.tracking = cookercfg.tracking
245
246 bb.utils.set_context(bb.utils.clean_context())
247 bb.event.set_class_handlers(bb.event.clean_class_handlers())
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600248 self.basedata = bb.data.init()
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500249 if self.tracking:
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600250 self.basedata.enableTracking()
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500251
252 # Keep a datastore of the initial environment variables and their
253 # values from when BitBake was launched to enable child processes
254 # to use environment variables which have been cleaned from the
255 # BitBake processes env
256 self.savedenv = bb.data.init()
257 for k in cookercfg.env:
258 self.savedenv.setVar(k, cookercfg.env[k])
259
260 filtered_keys = bb.utils.approved_variables()
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600261 bb.data.inheritFromOS(self.basedata, self.savedenv, filtered_keys)
262 self.basedata.setVar("BB_ORIGENV", self.savedenv)
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500263
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500264 if worker:
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600265 self.basedata.setVar("BB_WORKERCONTEXT", "1")
266
267 self.data = self.basedata
268 self.mcdata = {}
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500269
270 def parseBaseConfiguration(self):
Brad Bishop00e122a2019-10-05 11:10:57 -0400271 data_hash = hashlib.sha256()
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500272 try:
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600273 self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
274
275 if self.data.getVar("BB_WORKERCONTEXT", False) is None:
276 bb.fetch.fetcher_init(self.data)
Brad Bishopc68388fc2019-08-26 01:33:31 -0400277 bb.parse.init_parser(self.data)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600278 bb.codeparser.parser_cache_init(self.data)
279
280 bb.event.fire(bb.event.ConfigParsed(), self.data)
281
282 reparse_cnt = 0
283 while self.data.getVar("BB_INVALIDCONF", False) is True:
284 if reparse_cnt > 20:
285 logger.error("Configuration has been re-parsed over 20 times, "
286 "breaking out of the loop...")
287 raise Exception("Too deep config re-parse loop. Check locations where "
288 "BB_INVALIDCONF is being set (ConfigParsed event handlers)")
289 self.data.setVar("BB_INVALIDCONF", False)
290 self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
291 reparse_cnt += 1
292 bb.event.fire(bb.event.ConfigParsed(), self.data)
293
294 bb.parse.init_parser(self.data)
Brad Bishop00e122a2019-10-05 11:10:57 -0400295 data_hash.update(self.data.get_hash().encode('utf-8'))
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600296 self.mcdata[''] = self.data
297
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500298 multiconfig = (self.data.getVar("BBMULTICONFIG") or "").split()
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600299 for config in multiconfig:
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500300 mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600301 bb.event.fire(bb.event.ConfigParsed(), mcdata)
302 self.mcdata[config] = mcdata
Brad Bishop00e122a2019-10-05 11:10:57 -0400303 data_hash.update(mcdata.get_hash().encode('utf-8'))
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500304 if multiconfig:
305 bb.event.fire(bb.event.MultiConfigParsed(self.mcdata), self.data)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600306
Brad Bishop00e122a2019-10-05 11:10:57 -0400307 self.data_hash = data_hash.hexdigest()
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600308 except (SyntaxError, bb.BBHandledException):
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500309 raise bb.BBHandledException
310 except bb.data_smart.ExpansionError as e:
311 logger.error(str(e))
312 raise bb.BBHandledException
313 except Exception:
314 logger.exception("Error parsing configuration files")
315 raise bb.BBHandledException
316
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500317 # Create a copy so we can reset at a later date when UIs disconnect
318 self.origdata = self.data
319 self.data = bb.data.createCopy(self.origdata)
320 self.mcdata[''] = self.data
321
322 def reset(self):
323 # We may not have run parseBaseConfiguration() yet
324 if not hasattr(self, 'origdata'):
325 return
326 self.data = bb.data.createCopy(self.origdata)
327 self.mcdata[''] = self.data
328
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500329 def _findLayerConf(self, data):
330 return findConfigFile("bblayers.conf", data)
331
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500332 def parseConfigurationFiles(self, prefiles, postfiles, mc = "default"):
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600333 data = bb.data.createCopy(self.basedata)
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500334 data.setVar("BB_CURRENT_MC", mc)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500335
336 # Parse files for loading *before* bitbake.conf and any includes
337 for f in prefiles:
338 data = parse_config_file(f, data)
339
340 layerconf = self._findLayerConf(data)
341 if layerconf:
342 parselog.debug(2, "Found bblayers.conf (%s)", layerconf)
343 # By definition bblayers.conf is in conf/ of TOPDIR.
344 # We may have been called with cwd somewhere else so reset TOPDIR
345 data.setVar("TOPDIR", os.path.dirname(os.path.dirname(layerconf)))
346 data = parse_config_file(layerconf, data)
347
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500348 layers = (data.getVar('BBLAYERS') or "").split()
Brad Bishop15ae2502019-06-18 21:44:24 -0400349 broken_layers = []
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500350
351 data = bb.data.createCopy(data)
352 approved = bb.utils.approved_variables()
Brad Bishop15ae2502019-06-18 21:44:24 -0400353
354 # Check whether present layer directories exist
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500355 for layer in layers:
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600356 if not os.path.isdir(layer):
Brad Bishop15ae2502019-06-18 21:44:24 -0400357 broken_layers.append(layer)
358
359 if broken_layers:
360 parselog.critical("The following layer directories do not exist:")
361 for layer in broken_layers:
362 parselog.critical(" %s", layer)
363 parselog.critical("Please check BBLAYERS in %s" % (layerconf))
364 sys.exit(1)
365
366 for layer in layers:
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500367 parselog.debug(2, "Adding layer %s", layer)
368 if 'HOME' in approved and '~' in layer:
369 layer = os.path.expanduser(layer)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500370 if layer.endswith('/'):
371 layer = layer.rstrip('/')
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500372 data.setVar('LAYERDIR', layer)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600373 data.setVar('LAYERDIR_RE', re.escape(layer))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500374 data = parse_config_file(os.path.join(layer, "conf", "layer.conf"), data)
375 data.expandVarref('LAYERDIR')
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600376 data.expandVarref('LAYERDIR_RE')
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500377
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600378 data.delVar('LAYERDIR_RE')
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500379 data.delVar('LAYERDIR')
380
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500381 bbfiles_dynamic = (data.getVar('BBFILES_DYNAMIC') or "").split()
382 collections = (data.getVar('BBFILE_COLLECTIONS') or "").split()
383 invalid = []
384 for entry in bbfiles_dynamic:
385 parts = entry.split(":", 1)
386 if len(parts) != 2:
387 invalid.append(entry)
388 continue
389 l, f = parts
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500390 invert = l[0] == "!"
391 if invert:
392 l = l[1:]
393 if (l in collections and not invert) or (l not in collections and invert):
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500394 data.appendVar("BBFILES", " " + f)
395 if invalid:
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500396 bb.fatal("BBFILES_DYNAMIC entries must be of the form {!}<collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid))
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500397
398 layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split())
Brad Bishop19323692019-04-05 15:28:33 -0400399 collections_tmp = collections[:]
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500400 for c in collections:
Brad Bishop19323692019-04-05 15:28:33 -0400401 collections_tmp.remove(c)
402 if c in collections_tmp:
403 bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c)
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500404 compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split())
405 if compat and not (compat & layerseries):
406 bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
407 % (c, " ".join(layerseries), " ".join(compat)))
Brad Bishop316dfdd2018-06-25 12:45:53 -0400408 elif not compat and not data.getVar("BB_WORKERCONTEXT"):
409 bb.warn("Layer %s should set LAYERSERIES_COMPAT_%s in its conf/layer.conf file to list the core layer names it is compatible with." % (c, c))
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500410
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500411 if not data.getVar("BBPATH"):
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500412 msg = "The BBPATH variable is not set"
413 if not layerconf:
414 msg += (" and bitbake did not find a conf/bblayers.conf file in"
415 " the expected location.\nMaybe you accidentally"
416 " invoked bitbake from the wrong directory?")
417 raise SystemExit(msg)
418
419 data = parse_config_file(os.path.join("conf", "bitbake.conf"), data)
420
421 # Parse files for loading *after* bitbake.conf and any includes
422 for p in postfiles:
423 data = parse_config_file(p, data)
424
425 # Handle any INHERITs and inherit the base class
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500426 bbclasses = ["base"] + (data.getVar('INHERIT') or "").split()
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500427 for bbclass in bbclasses:
428 data = _inherit(bbclass, data)
429
430 # Nomally we only register event handlers at the end of parsing .bb files
431 # We register any handlers we've found so far here...
432 for var in data.getVar('__BBHANDLERS', False) or []:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500433 handlerfn = data.getVarFlag(var, "filename", False)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600434 if not handlerfn:
435 parselog.critical("Undefined event handler function '%s'" % var)
436 sys.exit(1)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500437 handlerln = int(data.getVarFlag(var, "lineno", False))
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500438 bb.event.register(var, data.getVar(var, False), (data.getVarFlag(var, "eventmask") or "").split(), handlerfn, handlerln)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500439
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500440 data.setVar('BBINCLUDED',bb.parse.get_file_depends(data))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500441
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600442 return data
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500443