diff --git a/cmake/modules/extensions.cmake b/cmake/modules/extensions.cmake index efcbb988181..b8b236f140d 100644 --- a/cmake/modules/extensions.cmake +++ b/cmake/modules/extensions.cmake @@ -1271,7 +1271,7 @@ function(zephyr_code_relocate file location) endif() set_property(TARGET code_data_relocation_target APPEND PROPERTY COMPILE_DEFINITIONS - "${location}:${file}:${copy_flag}") + "${location}:${copy_flag}:${file}") endfunction() # Usage: diff --git a/scripts/gen_relocate_app.py b/scripts/gen_relocate_app.py index 626cbc72c8b..ecdd8c04e42 100644 --- a/scripts/gen_relocate_app.py +++ b/scripts/gen_relocate_app.py @@ -418,7 +418,7 @@ def create_dict_wrt_mem(): if ':' not in line: continue - mem_region, file_name, copy_flag = line.split(':', 2) + mem_region, copy_flag, file_name = line.split(':', 2) file_name_list = glob.glob(file_name) if not file_name_list: