Skip to content

Commit 12cff62

Browse files
committed
CMakeList: Disable gapfill for RX target
Ignore gapfill for RX target as some RX toolchains generate wrong output image when running gapfill for binary format. Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
1 parent 6c424df commit 12cff62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,8 +1701,12 @@ list(APPEND
17011701
list(APPEND post_build_byproducts ${KERNEL_MAP_NAME})
17021702

17031703
# Use ';' as separator to get proper space in resulting command.
1704-
set(gap_fill_prop "$<TARGET_PROPERTY:bintools,elfconvert_flag_gapfill>")
1705-
set(gap_fill "$<$<BOOL:${gap_fill_prop}>:${gap_fill_prop}${CONFIG_BUILD_GAP_FILL_PATTERN}>")
1704+
# Ignore gapfill for RX target as some RX toolchains generate wrong output image when running
1705+
# gapfill for binary format.
1706+
if(NOT CONFIG_RX)
1707+
set(gap_fill_prop "$<TARGET_PROPERTY:bintools,elfconvert_flag_gapfill>")
1708+
set(gap_fill "$<$<BOOL:${gap_fill_prop}>:${gap_fill_prop}${CONFIG_BUILD_GAP_FILL_PATTERN}>")
1709+
endif()
17061710

17071711
if(CONFIG_OUTPUT_PRINT_MEMORY_USAGE)
17081712
target_link_libraries(${logical_target_for_zephyr_elf} $<TARGET_PROPERTY:linker,memusage>)

0 commit comments

Comments
 (0)