Squash commits for public release
This commit is contained in:
18
utils/compilers/DevTreeCompiler/__main__.py
Normal file
18
utils/compilers/DevTreeCompiler/__main__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from DevTreeCompiler import DevTreeCompiler
|
||||
import argparse
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('i', type=str, help='Input file')
|
||||
parser.add_argument('o', type=str, help='Output file')
|
||||
parser.add_argument('--dumpc', action='store_true',
|
||||
help='Dumping C array')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.dumpc:
|
||||
DevTreeCompiler.to_c_arr(args.i)
|
||||
else:
|
||||
DevTreeCompiler.compile(args.i, args.o)
|
||||
Reference in New Issue
Block a user