]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-fwextract-kingst-la2016: do not zero pad fpga bitstream
authorFlorian Schmidt <redacted>
Sun, 7 Jun 2020 17:04:08 +0000 (19:04 +0200)
committerUwe Hermann <redacted>
Mon, 8 Jun 2020 21:46:20 +0000 (23:46 +0200)
zero padding to 180224 will be done by uploader(/libsigrok).
to get same behaviour as vendors software uploader will need to know this
exact file-size without zero padding.

[related to bug #1559]

firmware/kingst-la/sigrok-fwextract-kingst-la2016

index d4669a7ff65b50c136833070b313e3d6dac0454d..a5832184577a9f661a559925cb122f19b72cd919 100755 (executable)
@@ -192,5 +192,5 @@ if __name__ == "__main__":
     res = qt_resources(sys.argv[1])
 
     writer = res_writer(res)
-    writer.extract("fwfpga/LA2016A", "kingst-la2016a-fpga.bitstream", zero_pad_to=180224)
+    writer.extract("fwfpga/LA2016A", "kingst-la2016a-fpga.bitstream")
     writer.extract_re(r"fwusb/fw(.*)", r"kingst-la-\1.fw", decoder=maybe_intel_hex_as_blob)