litex/mkmscimg.py

13 lines
548 B
Python
Raw Normal View History

#!/usr/bin/env python3
2014-04-18 18:01:29 -04:00
import argparse
import crc
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="CRC32 computation tool and MiSoC image file writer.")
parser.add_argument("input", help="input file")
parser.add_argument("-o", "--output", default=None, help="output file (if not specified, use input file)")
parser.add_argument("-f", "--fbi", default=False, action="store_true", help="build flash boot image (FBI) file")
args = parser.parse_args()
crc.insert_crc(args.input, args.fbi, args.output)