soc: arm: ti_simplelink: cc13x2_cc26x2: compile power.c if PM_DEVICE=y

power.c contains some struct definitions required by the HAL when using
PM_DEVICE.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2023-09-04 09:47:18 +02:00 committed by Fabio Baltieri
commit 4747218837

View file

@ -5,7 +5,7 @@
zephyr_sources(soc.c)
zephyr_sources(ccfg.c)
if(CONFIG_PM OR CONFIG_POWEROFF)
if(CONFIG_PM OR CONFIG_PM_DEVICE OR CONFIG_POWEROFF)
zephyr_library_sources(power.c)
endif()
zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c)