From acf64d22527ac19b67cc41129e701b4b02186224 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Thu, 3 Oct 2024 18:32:12 +0200 Subject: [PATCH] mk: config: default enable CFG_NOTIF_TEST_WD only when dependencies are enabled Set CFG_NOTIF_TEST_WD ?= y only when the features it needs are enabled. Fixes the following warning on platforms that enable CFG_ENABLE_EMBEDDED_TESTS but not CFG_CORE_ASYNC_NOTIF or CFG_CALLOUT: mk/config.mk:1039: Warning: Disabling CFG_NOTIF_TEST_WD [requires CFG_CALLOUT CFG_CORE_ASYNC_NOTIF] Signed-off-by: Jerome Forissier --- mk/config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mk/config.mk b/mk/config.mk index d2629a13faa..4107f848603 100644 --- a/mk/config.mk +++ b/mk/config.mk @@ -1035,7 +1035,8 @@ endif CFG_CALLOUT ?= $(CFG_CORE_ASYNC_NOTIF) # Enable notification based test watchdog -CFG_NOTIF_TEST_WD ?= $(CFG_ENABLE_EMBEDDED_TESTS) +CFG_NOTIF_TEST_WD ?= $(call cfg-all-enabled,CFG_ENABLE_EMBEDDED_TESTS \ + CFG_CALLOUT CFG_CORE_ASYNC_NOTIF) $(eval $(call cfg-depends-all,CFG_NOTIF_TEST_WD,CFG_CALLOUT \ CFG_CORE_ASYNC_NOTIF))