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
|
return dts
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="LiteX's CSR JSON to Linux DTS generator")
|
parser = argparse.ArgumentParser(description="LiteX's CSR JSON to Linux DTS generator")
|
||||||
parser.add_argument("csr_json", help="CSR JSON file")
|
parser.add_argument("csr_json", help="CSR JSON file")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -519,3 +518,7 @@ if __name__ == "__main__":
|
||||||
d = json.load(open(args.csr_json))
|
d = json.load(open(args.csr_json))
|
||||||
|
|
||||||
print(generate_dts(d))
|
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_sim=litex.tools.litex_sim:main",
|
||||||
"litex_read_verilog=litex.tools.litex_read_verilog:main",
|
"litex_read_verilog=litex.tools.litex_read_verilog:main",
|
||||||
"litex_simple=litex.boards.targets.simple:main",
|
"litex_simple=litex.boards.targets.simple:main",
|
||||||
|
"litex_json2dts=litex.tools.litex_json2dts:main",
|
||||||
# short names
|
# short names
|
||||||
"lxterm=litex.tools.litex_term:main",
|
"lxterm=litex.tools.litex_term:main",
|
||||||
"lxserver=litex.tools.litex_server:main",
|
"lxserver=litex.tools.litex_server:main",
|
||||||
|
|
Loading…
Reference in New Issue