summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-09-04 22:46:26 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-09-04 22:46:26 +0000
commitaca7d1e8d1667eb8ecee478752a4510dc34ff7ff (patch)
tree12264ead23feb80defbc0c969b823dc8f9cc57b0
parent0ef0ece9d68911fc30877c7fb534f9dab6f0b3a0 (diff)
downloadbitbake-aca7d1e8d1667eb8ecee478752a4510dc34ff7ff.tar.gz
Add support for the syntax "export VARIABLE"
-rw-r--r--ChangeLog1
-rw-r--r--lib/bb/parse/parse_py/ConfHandler.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b8ab651aa..b1a53dd0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ Changes in BitBake 1.8.x:
- Detect builds of tasks with overlapping providers and warn (will become a fatal error) (#1359)
- Add MULTI_PROVIDER_WHITELIST variable to allow known safe multiple providers to be listed
- Handle paths in svn fetcher module parameter
+ - Support the syntax "export VARIABLE"
Changes in Bitbake 1.8.8:
- Rewrite svn fetcher to make adding extra operations easier
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