Commit 9f25fa20 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Anas Nashif
Browse files

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: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent f6512920
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -896,13 +896,13 @@ zephyr_get_include_directories_for_lang(C
  STRIP_PREFIX # Don't use a -I prefix
  )

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()

if(CONFIG_HAS_DTS)
  # dev_handles.c is generated from ${ZEPHYR_LINK_STAGE_EXECUTABLE} by
  # gen_handles.py
  add_custom_command(