summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-04-30 11:18:46 +1000
committerChris Johns <chrisj@rtems.org>2013-04-30 11:18:46 +1000
commit1c44f1c24fb7f5f535f6db71a251af95a6d1e6b6 (patch)
tree3c70a10686e40bd4b0a779899eeae02183e783bf
parentrtems/config/4.11/rtems-*.bset: Add gdb based BSPs for testing (diff)
downloadrtems-source-builder-1c44f1c24fb7f5f535f6db71a251af95a6d1e6b6.tar.bz2
Add a get value call for macros.
-rw-r--r--source-builder/sb/macros.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source-builder/sb/macros.py b/source-builder/sb/macros.py
index e0ff0e9..1c46ec8 100644
--- a/source-builder/sb/macros.py
+++ b/source-builder/sb/macros.py
@@ -366,6 +366,12 @@ class macros:
return None
return m[1]
+ def get_value(self, key):
+ m = self.get(key)
+ if m is None:
+ return None
+ return m[2]
+
def overridden(self, key):
return self.get_attribute(key) == 'override'