Skip to content

Commit 1f9c5f1

Browse files
ulfalizernashif
authored andcommitted
kconfig: Improve USE_CODE_PARTITION prompt and help string
The prompt and help string for USE_CODE_PARTITION were too terse and didn't make it clear that it's related to devicetree, which confused me. Spell things out in more detail. Unless the meaning of a symbol is completely obvious from context, aim for at least a few sentences of help text. Think about what would be confusing for someone coming at it without much context. Signed-off-by: Ulf Magnusson <[email protected]>
1 parent 9cdb6f4 commit 1f9c5f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Kconfig.zephyr

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ config HAS_FLASH_LOAD_OFFSET
8686
and FLASH_LOAD_SIZE.
8787

8888
config USE_CODE_PARTITION
89-
bool "link into code-partition"
89+
bool "Link application into /chosen/zephyr,code-partition from devicetree"
9090
depends on HAS_FLASH_LOAD_OFFSET
9191
help
92-
When selected application will be linked into chosen code-partition.
92+
When enabled, the application will be linked into the flash partition
93+
selected by the zephyr,code-partition property in /chosen in devicetree.
94+
When this is disabled, the flash load offset and size can be set manually
95+
below.
9396

9497
# Workaround for not being able to have commas in macro arguments
9598
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition

0 commit comments

Comments
 (0)