Added ability for board specific meta data generation

Use new @board meta data attribute for board specific ifdef support
This commit is contained in:
Don Gagne
2015-04-16 12:55:20 -07:00
committed by Lorenz Meier
parent 3a70e7bf1b
commit 9ac350a7d1
4 changed files with 52 additions and 32 deletions
+6 -1
View File
@@ -65,6 +65,11 @@ def main():
metavar="FILENAME",
help="Create XML file"
" (default FILENAME: parameters.xml)")
parser.add_argument("-b", "--board",
nargs='?',
const="",
metavar="BOARD",
help="Board to create xml parameter xml for")
parser.add_argument("-w", "--wiki",
nargs='?',
const="parameters.wiki",
@@ -116,7 +121,7 @@ def main():
# Output to XML file
if args.xml:
print("Creating XML file " + args.xml)
out = xmlout.XMLOutput(param_groups)
out = xmlout.XMLOutput(param_groups, args.board)
out.Save(args.xml)
# Output to DokuWiki tables