diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index 6311e76902..e6488bbe11 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py | |||
@@ -31,6 +31,7 @@ from bb.parse import ParseError | |||
31 | __config_regexp__ = re.compile( r"(?P<exp>export\s*)?(?P<var>[a-zA-Z0-9\-_+.${}/]+)(\[(?P<flag>[a-zA-Z0-9\-_+.]+)\])?\s*((?P<colon>:=)|(?P<ques>\?=)|(?P<append>\+=)|(?P<prepend>=\+)|(?P<predot>=\.)|(?P<postdot>\.=)|=)\s*(?P<apo>['\"]?)(?P<value>.*)(?P=apo)$") | 31 | __config_regexp__ = re.compile( r"(?P<exp>export\s*)?(?P<var>[a-zA-Z0-9\-_+.${}/]+)(\[(?P<flag>[a-zA-Z0-9\-_+.]+)\])?\s*((?P<colon>:=)|(?P<ques>\?=)|(?P<append>\+=)|(?P<prepend>=\+)|(?P<predot>=\.)|(?P<postdot>\.=)|=)\s*(?P<apo>['\"]?)(?P<value>.*)(?P=apo)$") |
32 | __include_regexp__ = re.compile( r"include\s+(.+)" ) | 32 | __include_regexp__ = re.compile( r"include\s+(.+)" ) |
33 | __require_regexp__ = re.compile( r"require\s+(.+)" ) | 33 | __require_regexp__ = re.compile( r"require\s+(.+)" ) |
34 | __export_regexp__ = re.compile( r"export\s+(.+)" ) | ||
34 | 35 | ||
35 | def init(data): | 36 | def init(data): |
36 | if not bb.data.getVar('TOPDIR', data): | 37 | if not bb.data.getVar('TOPDIR', data): |
@@ -214,6 +215,11 @@ def feeder(lineno, s, fn, data): | |||
214 | include(fn, s, data, "include required") | 215 | include(fn, s, data, "include required") |
215 | return | 216 | return |
216 | 217 | ||
218 | m = __export_regexp__.match(s) | ||
219 | if m: | ||
220 | bb.data.setVarFlag(m.group(1), "export", 1, data) | ||
221 | return | ||
222 | |||
217 | raise ParseError("%s:%d: unparsed line: '%s'" % (fn, lineno, s)); | 223 | raise ParseError("%s:%d: unparsed line: '%s'" % (fn, lineno, s)); |
218 | 224 | ||
219 | # Add us to the handlers list | 225 | # Add us to the handlers list |