Skip to content

Commit

Permalink
temp update
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jul 11, 2023
1 parent a70fedc commit bb7353c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
28 changes: 24 additions & 4 deletions ports/mimxrt10xx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,34 @@ project(tinyuf2 C ASM)
#------------------------------------

set(CMAKE_EXECUTABLE_SUFFIX .elf)
add_executable(tinyuf2)

target_sources(tinyuf2 PUBLIC
add_executable(tinyuf2
board_flash.c
boards.c
romapi_flash.c
#${TOP}/lib/tinyusb/src/portable/chipidea/ci_hs/dcd_ci_hs.c
)
#target_compile_definitions(tinyuf2 PUBLIC)
#target_link_options(tinyuf2 PUBLIC)

#target_link_options(tinyuf2 PUBLIC
# "LINKER:--script=${CMAKE_CURRENT_LIST_DIR}/linker/${MCU_VARIANT}_ram.ld"
# "LINKER:--script=${CMAKE_CURRENT_LIST_DIR}/linker/memory.ld"
# "LINKER:--script=${CMAKE_CURRENT_LIST_DIR}/linker/common.ld"
# )

#family_configure_common(tinyuf2)
#add_board_target(board_${BOARD})
#
#include(${TOP}/src/tinyuf2.cmake)
#add_tinyuf2(tinyuf2)
#
#target_link_libraries(tinyuf2 PUBLIC board_${BOARD})
#
#family_flash_sdp(tinyuf2)
#family_flash_jlink(tinyuf2 hex)

family_configure_tinyuf2(tinyuf2)

#------------------------------------
# Application (including self update)
#------------------------------------

5 changes: 0 additions & 5 deletions ports/stm32f3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,3 @@ family_flash_jlink(tinyuf2)
# Self Update
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/apps/self_update)

#------------------------------------
# BOARD_TARGET
# used by all executable
#------------------------------------

2 changes: 1 addition & 1 deletion ports/stm32f3/apps/self_update/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#------------------------------------
# Self Update
#------------------------------------
# This file is meant to be include by add_subdirectory() in the root CMakeLists.txt
#------------------------------------

# Generate bootloader_bin.c
add_custom_command(OUTPUT bootloader_bin.c
Expand Down

0 comments on commit bb7353c

Please sign in to comment.