Skip to content

Commit 9bd4685

Browse files
taricarlescufi
authored andcommitted
build: don't assume FLASH is the ROM region
Most ARM platforms name their ROM region `FLASH`, but this assumption is not portable. Have gen_relocate_app refer to ROMABLE_REGION instead of hard-coding the platform-specific memory region name. Signed-off-by: Peter Marheine <[email protected]>
1 parent 3a8c20d commit 9bd4685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/gen_relocate_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
LOAD_ADDRESS_LOCATION_FLASH = """
5757
#ifdef CONFIG_XIP
58-
GROUP_DATA_LINK_IN({0}, FLASH)
58+
GROUP_DATA_LINK_IN({0}, ROMABLE_REGION)
5959
#else
6060
GROUP_DATA_LINK_IN({0}, {0})
6161
#endif

0 commit comments

Comments
 (0)