setup: add litex_json2dts to console_scripts.
This commit is contained in:
parent
b64209b38b
commit
aed0dcee4c
|
@ -510,8 +510,7 @@ def generate_dts(d):
|
|||
return dts
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX's CSR JSON to Linux DTS generator")
|
||||
parser.add_argument("csr_json", help="CSR JSON file")
|
||||
args = parser.parse_args()
|
||||
|
@ -519,3 +518,7 @@ if __name__ == "__main__":
|
|||
d = json.load(open(args.csr_json))
|
||||
|
||||
print(generate_dts(d))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
1
setup.py
1
setup.py
|
@ -43,6 +43,7 @@ setup(
|
|||
"litex_sim=litex.tools.litex_sim:main",
|
||||
"litex_read_verilog=litex.tools.litex_read_verilog:main",
|
||||
"litex_simple=litex.boards.targets.simple:main",
|
||||
"litex_json2dts=litex.tools.litex_json2dts:main",
|
||||
# short names
|
||||
"lxterm=litex.tools.litex_term:main",
|
||||
"lxserver=litex.tools.litex_server:main",
|
||||
|
|
Loading…
Reference in New Issue