summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-09-05 07:48:15 +0000
committerRichard Purdie <richard@openedhand.com>2007-09-05 07:48:15 +0000
commit899c451a73cdb5fc7094626c8331a8a690a50d2c (patch)
treef419432ea9de0d53705e02626de1f6207156fe9c /bitbake/lib/bb/parse
parent7d4aa7f04e661d0546569f2f5a581e44e447de84 (diff)
downloadopenembedded-core-899c451a73cdb5fc7094626c8331a8a690a50d2c.tar.gz
openembedded-core-899c451a73cdb5fc7094626c8331a8a690a50d2c.tar.bz2
openembedded-core-899c451a73cdb5fc7094626c8331a8a690a50d2c.zip
bitbake: Sync with 1.8 upstream branch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2689 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py6
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
__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