From 4747218837685671a4e21e822f39e84673dabe2b Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 4 Sep 2023 09:47:18 +0200 Subject: [PATCH] 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 --- soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt b/soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt index 085aa4d474b..d2a17487383 100644 --- a/soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt +++ b/soc/arm/ti_simplelink/cc13x2_cc26x2/CMakeLists.txt @@ -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)