device: set number_of_dynamic_devices only if needed
This variable is only needed when gen_handles.py is called, so define it under the if() above. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
f6512920ca
commit
9f25fa20ce
1 changed files with 6 additions and 6 deletions
|
@ -896,13 +896,13 @@ zephyr_get_include_directories_for_lang(C
|
||||||
STRIP_PREFIX # Don't use a -I prefix
|
STRIP_PREFIX # Don't use a -I prefix
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_PM_DEVICE_POWER_DOMAIN_DYNAMIC)
|
|
||||||
set(number_of_dynamic_devices ${CONFIG_PM_DEVICE_POWER_DOMAIN_DYNAMIC_NUM})
|
|
||||||
else()
|
|
||||||
set(number_of_dynamic_devices 0)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CONFIG_HAS_DTS)
|
if(CONFIG_HAS_DTS)
|
||||||
|
if(CONFIG_PM_DEVICE_POWER_DOMAIN_DYNAMIC)
|
||||||
|
set(number_of_dynamic_devices ${CONFIG_PM_DEVICE_POWER_DOMAIN_DYNAMIC_NUM})
|
||||||
|
else()
|
||||||
|
set(number_of_dynamic_devices 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
# dev_handles.c is generated from ${ZEPHYR_LINK_STAGE_EXECUTABLE} by
|
# dev_handles.c is generated from ${ZEPHYR_LINK_STAGE_EXECUTABLE} by
|
||||||
# gen_handles.py
|
# gen_handles.py
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue