diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2017-01-17 14:46:56 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-01-26 16:22:49 +0100 |
commit | aacaa4b1c2ea40e6ddf83797971a7fd6bb479a42 (patch) | |
tree | 3f3d0916bfa0b36dbcb2b475255ec01f0ba154e8 /firmware/fx2 | |
parent | 468f542210ba11cb5a81092de0547f4850c885c4 (diff) | |
download | uhd-aacaa4b1c2ea40e6ddf83797971a7fd6bb479a42.tar.gz uhd-aacaa4b1c2ea40e6ddf83797971a7fd6bb479a42.tar.bz2 uhd-aacaa4b1c2ea40e6ddf83797971a7fd6bb479a42.zip |
Added make target to produce C array from eeprom.bin
Diffstat (limited to 'firmware/fx2')
-rw-r--r-- | firmware/fx2/b100/CMakeLists.txt | 6 | ||||
-rw-r--r-- | firmware/fx2/usrp1/CMakeLists.txt | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/firmware/fx2/b100/CMakeLists.txt b/firmware/fx2/b100/CMakeLists.txt index 438aa9207..18bc2080a 100644 --- a/firmware/fx2/b100/CMakeLists.txt +++ b/firmware/fx2/b100/CMakeLists.txt @@ -84,5 +84,11 @@ add_custom_target(b100_eeprom ALL COMMAND ${PYTHON_EXECUTABLE} ${BUILD_EEPROM} -r2 b100_boot.bin b100_eeprom.bin ) +add_custom_target(b100_eeprom_header ALL + DEPENDS b100_eeprom + COMMAND xxd -i b100_eeprom.bin ${CMAKE_SOURCE_DIR}/../../host/utils/b100_eeprom.h + COMMAND sed -i 's/char/const char/' ${CMAKE_SOURCE_DIR}/../../host/utils/b100_eeprom.h +) + add_executable(b100_boot ${eeprom1p_sources}) target_link_libraries(b100_boot libb100) diff --git a/firmware/fx2/usrp1/CMakeLists.txt b/firmware/fx2/usrp1/CMakeLists.txt index 6607bc7f2..8b5389535 100644 --- a/firmware/fx2/usrp1/CMakeLists.txt +++ b/firmware/fx2/usrp1/CMakeLists.txt @@ -80,5 +80,11 @@ add_custom_target(usrp1_eeprom ALL COMMAND ${PYTHON_EXECUTABLE} ${BUILD_EEPROM} -r1 usrp1_boot.bin usrp1_eeprom.bin ) +add_custom_target(usrp1_eeprom_header ALL + DEPENDS usrp1_eeprom + COMMAND xxd -i usrp1_eeprom.bin ${CMAKE_SOURCE_DIR}/../../host/utils/usrp1_eeprom.h + COMMAND sed -i 's/char/const char/' ${CMAKE_SOURCE_DIR}/../../host/utils/usrp1_eeprom.h +) + add_executable(usrp1_boot ${eeprom1_sources}) target_link_libraries(usrp1_boot libusrp1) |