Small improvement in generate-fonts.py following code review.
Add lv_img_conf in Docker image to build resources at build time.
This commit is contained in:
parent
cbe2f08cf7
commit
e2a3d9f0c7
6 changed files with 39 additions and 3 deletions
|
|
@ -940,6 +940,10 @@ add_custom_command(TARGET ${EXECUTABLE_NAME}
|
|||
COMMAND ${CMAKE_OBJCOPY} -O ihex ${EXECUTABLE_FILE_NAME}.out "${EXECUTABLE_FILE_NAME}.hex"
|
||||
COMMENT "post build steps for ${EXECUTABLE_FILE_NAME}")
|
||||
|
||||
if(BUILD_RESOURCES)
|
||||
add_dependencies(${EXECUTABLE_NAME} GenerateResources)
|
||||
endif()
|
||||
|
||||
# Build binary intended to be used by bootloader
|
||||
set(EXECUTABLE_MCUBOOT_NAME "pinetime-mcuboot-app")
|
||||
set(EXECUTABLE_MCUBOOT_FILE_NAME ${EXECUTABLE_MCUBOOT_NAME}-${pinetime_VERSION_MAJOR}.${pinetime_VERSION_MINOR}.${pinetime_VERSION_PATCH})
|
||||
|
|
@ -973,6 +977,10 @@ add_custom_command(TARGET ${EXECUTABLE_MCUBOOT_NAME}
|
|||
COMMENT "post build steps for ${EXECUTABLE_MCUBOOT_FILE_NAME}"
|
||||
)
|
||||
|
||||
if(BUILD_RESOURCES)
|
||||
add_dependencies(${EXECUTABLE_MCUBOOT_NAME} GenerateResources)
|
||||
endif()
|
||||
|
||||
if(BUILD_DFU)
|
||||
add_custom_command(TARGET ${EXECUTABLE_MCUBOOT_NAME}
|
||||
POST_BUILD
|
||||
|
|
@ -1127,7 +1135,9 @@ if(BUILD_DFU)
|
|||
)
|
||||
endif()
|
||||
|
||||
add_subdirectory(resources)
|
||||
if(BUILD_RESOURCES)
|
||||
add_subdirectory(resources)
|
||||
endif()
|
||||
|
||||
|
||||
# FLASH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue