From aacaa4b1c2ea40e6ddf83797971a7fd6bb479a42 Mon Sep 17 00:00:00 2001 From: Marcus Müller Date: Tue, 17 Jan 2017 14:46:56 +0100 Subject: Added make target to produce C array from eeprom.bin --- firmware/fx2/b100/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/fx2/b100') 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) -- cgit v1.2.3