diff options
author | Don Gagne <don@thegagnes.com> | 2015-04-16 12:55:20 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-18 11:14:12 +0200 |
commit | 9ac350a7d1c5c07a4e4ba7824744930f9110dedc (patch) | |
tree | df4215c31718bd1794b388a3adfa7e2658c6fc43 /Tools/px_process_params.py | |
parent | 3a70e7bf1bef904c63f3bbe0a92e7c9aeda978aa (diff) | |
download | px4-firmware-9ac350a7d1c5c07a4e4ba7824744930f9110dedc.tar.gz px4-firmware-9ac350a7d1c5c07a4e4ba7824744930f9110dedc.tar.bz2 px4-firmware-9ac350a7d1c5c07a4e4ba7824744930f9110dedc.zip |
Added ability for board specific meta data generation
Use new @board meta data attribute for board specific ifdef support
Diffstat (limited to 'Tools/px_process_params.py')
-rw-r--r-- | Tools/px_process_params.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/px_process_params.py b/Tools/px_process_params.py index 12128a997..cb2202d52 100644 --- a/Tools/px_process_params.py +++ b/Tools/px_process_params.py @@ -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 |