From 85e70bc13860eaa5e905efd5aa7397cb6215ad05 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 28 Jan 2026 07:47:18 +0530 Subject: [PATCH] fix(hal): Add brownout_hal for TEE builds --- components/hal/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/hal/CMakeLists.txt b/components/hal/CMakeLists.txt index 88bf7ed916..dcc163d98a 100644 --- a/components/hal/CMakeLists.txt +++ b/components/hal/CMakeLists.txt @@ -37,7 +37,11 @@ else() endif() endif() -if(NOT esp_tee_build AND NOT BOOTLOADER_BUILD) +if(esp_tee_build) + if(CONFIG_SOC_BOD_SUPPORTED) + list(APPEND srcs "brownout_hal.c") + endif() +elseif(NOT BOOTLOADER_BUILD) list(APPEND srcs "color_hal.c") if(CONFIG_SOC_CLK_TREE_SUPPORTED)