From 22aecaa9cee258d707880c5b8823dd7974b66717 Mon Sep 17 00:00:00 2001 From: Vincent Guittot Date: Fri, 24 Jan 2025 17:46:46 +0100 Subject: [PATCH] optee: fix notification support When notification is not enabled, power_domain_notifications.c must not be compiled. Signed-off-by: Vincent Guittot --- product/optee/sub.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/optee/sub.mk b/product/optee/sub.mk index e02729e69..47d7f4fb0 100644 --- a/product/optee/sub.mk +++ b/product/optee/sub.mk @@ -1,6 +1,7 @@ # # Arm SCP/MCP Software -# Copyright (c) 2024, Linaro Limited and Contributors. All rights reserved. +# Copyright (c) 2024-2025, Linaro Limited and Contributors. All rights +# reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -129,7 +130,9 @@ $(eval $(call scpfw-embed-optee-module,smt)) # Some modules have extra and non generic C files srcs-$(CFG_SCPFW_MOD_CLOCK) += $(scpfw-path)/module/clock/src/clock_tree_management.c +ifeq ($(CFG_SCPFW_NOTIFICATION),y) srcs-$(CFG_SCPFW_MOD_POWER_DOMAIN) += $(scpfw-path)/module/power_domain/src/power_domain_notifications.c +endif srcs-$(CFG_SCPFW_MOD_POWER_DOMAIN) += $(scpfw-path)/module/power_domain/src/power_domain_state_checks.c srcs-$(CFG_SCPFW_MOD_POWER_DOMAIN) += $(scpfw-path)/module/power_domain/src/power_domain_utils.c srcs-$(CFG_SCPFW_MOD_SCMI) += $(scpfw-path)/module/scmi/src/mod_scmi_base.c -- GitLab