diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-09-04 22:46:26 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-09-04 22:46:26 +0000 |
commit | 789712931efb7944da1e7ebbe17d85f568f7f5d3 (patch) | |
tree | 5d7fe7b8906bc836825451f33668d84d4e10e588 /lib | |
parent | 03d7612faf36b212ddad914f6113f81c6c4fcd94 (diff) | |
download | bitbake-789712931efb7944da1e7ebbe17d85f568f7f5d3.tar.gz |
Add support for the syntax "export VARIABLE"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/parse/parse_py/ConfHandler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/parse/parse_py/ConfHandler.py b/lib/bb/parse/parse_py/ConfHandler.py index 6311e7690..e6488bbe1 100644 --- a/lib/bb/parse/parse_py/ConfHandler.py +++ b/lib/bb/parse/parse_py/ConfHandler.py @@ -31,6 +31,7 @@ from bb.parse import ParseError __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)$") __include_regexp__ = re.compile( r"include\s+(.+)" ) __require_regexp__ = re.compile( r"require\s+(.+)" ) +__export_regexp__ = re.compile( r"export\s+(.+)" ) def init(data): if not bb.data.getVar('TOPDIR', data): @@ -214,6 +215,11 @@ def feeder(lineno, s, fn, data): include(fn, s, data, "include required") return + m = __export_regexp__.match(s) + if m: + bb.data.setVarFlag(m.group(1), "export", 1, data) + return + raise ParseError("%s:%d: unparsed line: '%s'" % (fn, lineno, s)); # Add us to the handlers list |