Add HackRF factory firmware to basebands image.

This commit is contained in:
Jared Boone 2016-06-30 19:37:05 -07:00
parent 61f954dbeb
commit c3d81f1496
2 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,7 @@ set(CHIBIOS_PORTAPACK ${PROJECT_SOURCE_DIR}/chibios-portapack)
set(HACKRF_FIRMWARE_FILENAME hackrf_one_usb_ram.dfu)
set(HACKRF_FIRMWARE_IMAGE ${PROJECT_SOURCE_DIR}/${HACKRF_FIRMWARE_FILENAME})
set(STRIP_DFU ${PROJECT_SOURCE_DIR}/tools/strip_dfu.py)
set(MAKE_SPI_IMAGE ${PROJECT_SOURCE_DIR}/tools/make_spi_image.py)
set(MAKE_IMAGE_CHUNK ${PROJECT_SOURCE_DIR}/tools/make_image_chunk.py)

View File

@ -330,6 +330,21 @@ set(MODE_CPPSRC
)
DeclareTargets(PSPE wideband_spectrum)
### HackRF "factory" firmware
add_custom_target(
hackrf.bin
COMMAND ${STRIP_DFU} ${HACKRF_FIRMWARE_IMAGE} hackrf.bin
)
add_custom_target(
hackrf.img
COMMAND ${MAKE_IMAGE_CHUNK} hackrf.bin HRF1 hackrf.img
DEPENDS hackrf.bin
)
set(BASEBAND_IMAGES ${BASEBAND_IMAGES} hackrf.img)
#######################################################################
add_custom_target(