
* jenkins: initial commit * jenkins: add missing usb hub check script * jenkins: squish docker apt package install commands into a single command * jenkins: fix type in Dockerfile * jenkins: override interactive installations in Dockerfile (build-essentials fails due to tzdata) * jenkins: set executable flag on ci scripts * jenkins: remove sudo prefix from install scripts * jenkins: add python3 venv to Dockerfile and build scripts * jenkins: add missing python venv command to host install script * jenkins: remove python install and venv redundancies * jenkins: remove make install step, run hackrf tools directly from their build directory * jenkins: re-add python3 and pip installations to docker because usbhub depends on them * jenkins: add missing git install to docker * jenkins: add python-is-python3 to docker's installed dependencies * jenkins: use path string to specify the correct device for dfu-util * jenkins: specify usbhub id for dual hub setup * jenkins: turn unused usb hub ports off for testing * jenkins: remove custom job throttle property * use --disable-i2c usbhub option, install usbhub from latest, replace --privileged with cgroups option, remove redundancies from Dockerfile * update device usb path for dfu-util * remove apt/lists/* and fix typos * ci: remove redundant environment setup in Jenkins
18 lines
471 B
Bash
Executable File
18 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
host/build/hackrf-tools/src/hackrf_spiflash -w firmware/hackrf_usb/build/hackrf_usb.bin
|
|
EXIT_CODE="$?"
|
|
if [ "$EXIT_CODE" == "1" ]
|
|
then
|
|
echo "No GreatFET found! Disconnected? Exiting.."
|
|
exit $EXIT_CODE
|
|
elif [ "$EXIT_CODE" == "0" ]
|
|
then
|
|
echo "Firmware successfully flashed!"
|
|
elif [ "$EXIT_CODE" == "127" ]
|
|
then
|
|
echo "Host tool installation failed! Exiting.."
|
|
exit $EXIT_CODE
|
|
else
|
|
echo "god have mercy on your soul"
|
|
exit $EXIT_CODE
|
|
fi |