summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/lib/bb/parse
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake-dev/lib/bb/parse')
-rw-r--r--bitbake-dev/lib/bb/parse/parse_py/BBHandler.py8
-rw-r--r--bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py7
2 files changed, 9 insertions, 6 deletions
diff --git a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py
index f13bb015ba..76b917ca5d 100644
--- a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py
@@ -114,6 +114,8 @@ def finalise(fn, d):
114 tasklist = data.getVar('__BBTASKS', d) or [] 114 tasklist = data.getVar('__BBTASKS', d) or []
115 bb.build.add_tasks(tasklist, d) 115 bb.build.add_tasks(tasklist, d)
116 116
117 bb.event.fire(bb.event.RecipeParsed(fn, d))
118
117 119
118def handle(fn, d, include = 0): 120def handle(fn, d, include = 0):
119 global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__ 121 global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__
@@ -160,12 +162,6 @@ def handle(fn, d, include = 0):
160 f = open(fn,'r') 162 f = open(fn,'r')
161 abs_fn = fn 163 abs_fn = fn
162 164
163 if ext != ".bbclass":
164 dname = os.path.dirname(abs_fn)
165 if dname not in bbpath:
166 bbpath.insert(0, dname)
167 data.setVar('BBPATH', ":".join(bbpath), d)
168
169 if include: 165 if include:
170 bb.parse.mark_dependency(d, abs_fn) 166 bb.parse.mark_dependency(d, abs_fn)
171 167
diff --git a/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py b/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py
index f8a49689e2..c9f1ea13fb 100644
--- a/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py
@@ -102,6 +102,13 @@ def include(oldfn, fn, data, error_out):
102 fn = bb.data.expand(fn, data) 102 fn = bb.data.expand(fn, data)
103 oldfn = bb.data.expand(oldfn, data) 103 oldfn = bb.data.expand(oldfn, data)
104 104
105 if not os.path.isabs(fn):
106 dname = os.path.dirname(oldfn)
107 bbpath = "%s:%s" % (dname, bb.data.getVar("BBPATH", data, 1))
108 abs_fn = bb.which(bbpath, fn)
109 if abs_fn:
110 fn = abs_fn
111
105 from bb.parse import handle 112 from bb.parse import handle
106 try: 113 try:
107 ret = handle(fn, data, True) 114 ret = handle(fn, data, True)