aboutsummaryrefslogtreecommitdiffstats
path: root/makewrappers
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2014-04-24 17:25:50 -0500
committerPeter Seebach <peter.seebach@windriver.com>2014-04-24 17:25:50 -0500
commit6c6d0a3e4a4d382fd0b2e056a3ecffb015652767 (patch)
tree18e95f18622f8b4aee80f5285469c12956921729 /makewrappers
parent9485ba46bd622e328fe3557f94c38b77109e54fa (diff)
downloadpseudo-6c6d0a3e4a4d382fd0b2e056a3ecffb015652767.tar.gz
pseudo-6c6d0a3e4a4d382fd0b2e056a3ecffb015652767.tar.bz2
pseudo-6c6d0a3e4a4d382fd0b2e056a3ecffb015652767.zip
Make configure handle xattr guessing (or specifying)
Clean-up: Allow specification of environment hints for subports scripts, such as whether xattr support is available. Also make configure guess at a bit width if none is specified. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'makewrappers')
-rwxr-xr-xmakewrappers8
1 files changed, 6 insertions, 2 deletions
diff --git a/makewrappers b/makewrappers
index 992737b..f487887 100755
--- a/makewrappers
+++ b/makewrappers
@@ -562,11 +562,15 @@ def process_wrapfuncs(port):
print ""
return funcs
-def main():
+def main(argv):
"""Read in function definitions, write out files based on templates."""
funcs = []
sources = []
+ for arg in argv:
+ name, value = arg.split('=')
+ os.environ["port_" + name] = value
+
# error checking helpfully provided by the exception handler
copyright_file = open('guts/COPYRIGHT')
TemplateFile.copyright = copyright_file.read()
@@ -609,4 +613,4 @@ def main():
source.close()
if __name__ == '__main__':
- main()
+ main(sys.argv[1:])