provide all the prebuilt binaries (and not just toboot-booster.dfu) and create...

provide all the prebuilt binaries (and not just toboot-booster.dfu) and create toboot-booster.dfu properly
parent 54c48bd7
Pipeline #44576 canceled with stage
in 7 minutes and 10 seconds
Dear user, this package provides a binary version of the EFM32HG Tomu Board
bootloader.
Dear user, this package provides binaries for the EFM32HG Tomu Board bootloader.
You can find said binary in /usr/lib/firmware-tomu/. It can be used to flash
or upgrade the tomu bootloader by running:
You can find said binaries in /usr/lib/firmware-tomu/. You can flash or upgrade
the tomu bootloader by running:
$ sudo dfu-util -D /usr/lib/firmware-tomu/toboot-boosted.dfu
The other files in the /usr/lib/firmware-tomu/ directory can be used to flash
the EFM32HG Tomu Board with other tools or for debugging purposes:
* `ihex` - Intel Hex file useful for tools like Keil ULINK2 or OpenOCD.
* `bin` - Raw binary file can be flashed using OpenOCD, or attached to Booster.
* `elf` - Debuggable versions suitable for playing with gdb, or loading with OpenOCD.
* `dfu` - Raw binary file with DFU suffix
toboot/toboot.bin /usr/lib/firmware-tomu
toboot/toboot.elf /usr/lib/firmware-tomu
toboot/toboot.ihex /usr/lib/firmware-tomu
booster/toboot-booster.bin /usr/lib/firmware-tomu
booster/toboot-booster.dfu /usr/lib/firmware-tomu
debian/firmware-tomu.metainfo.xml usr/share/metainfo
......@@ -7,13 +7,14 @@ override_dh_auto_build:
dh_auto_build --sourcedirectory=toboot
dh_auto_build --sourcedirectory=booster
gcc booster/make-booster.c -o booster/make-booster
cd booster && ./make-booster ../toboot/toboot.bin toboot-booster.dfu
cd booster && ./make-booster ../toboot/toboot.bin toboot-booster.bin && cp toboot-booster.bin toboot-booster.dfu
dfu-suffix --pid 0x70b1 --vid 0x1209 --add booster/toboot-booster.dfu
override_dh_auto_clean:
cd toboot && $(MAKE) clean
cd booster && $(MAKE) clean
$(RM) booster/make-booster booster/toboot-booster.dfu
$(RM) booster/make-booster booster/toboot-booster.bin booster/toboot-booster.dfu
override_dh_fixperms:
dh_fixperms
chmod 644 debian/firmware-tomu/usr/lib/firmware-tomu/toboot-booster.dfu
chmod 644 debian/firmware-tomu/usr/lib/firmware-tomu/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment