2014-04-18 07:56:18 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2014-04-18 18:01:29 -04:00
|
|
|
import argparse
|
2014-04-18 07:56:18 -04:00
|
|
|
import crc
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
parser = argparse.ArgumentParser(description="CRC32 computation tool and MiSoC image file writer.")
|
2014-04-18 18:01:29 -04:00
|
|
|
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")
|
2014-04-18 07:56:18 -04:00
|
|
|
args = parser.parse_args()
|
2014-04-18 18:01:29 -04:00
|
|
|
crc.insert_crc(args.input, args.fbi, args.output)
|