From a5554506d1b9ee87d5806ea1d4deb70e1c6abae3 Mon Sep 17 00:00:00 2001 From: Baptiste TURPIN Date: Thu, 11 Sep 2025 10:38:09 +0200 Subject: [PATCH] slcc: conditions: fix misplaced condition Previously, the condition for including certain files was applied only to the file entry within a directory. This caused the directory itself to be included in build system paths even when the condition was not met, resulting in errors due to non-existent include paths. This commit moves the condition to the directory level, ensuring that both the directory and its files are only included when the condition is satisfied. This prevents the build system from referencing invalid paths and resolves related build issues. The same adjustment can be apply to other configuration files following this pattern. --- platform/security/component/mbedtls_config.slcc | 2 +- platform/security/component/psa_crypto_config.slcc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/security/component/mbedtls_config.slcc b/platform/security/component/mbedtls_config.slcc index bc710a3d7a..08b59ccb10 100644 --- a/platform/security/component/mbedtls_config.slcc +++ b/platform/security/component/mbedtls_config.slcc @@ -19,7 +19,7 @@ include: - path: config/preset file_list: - path: sli_mbedtls_config_se_cpc_primary.h - condition: [se_cpc_primary] + condition: [se_cpc_primary] template_file: - path: config/template/sli_mbedtls_config_autogen.h.jinja diff --git a/platform/security/component/psa_crypto_config.slcc b/platform/security/component/psa_crypto_config.slcc index a6c9ce83aa..20af22af6b 100644 --- a/platform/security/component/psa_crypto_config.slcc +++ b/platform/security/component/psa_crypto_config.slcc @@ -23,7 +23,7 @@ include: - path: config/preset file_list: - path: sli_psa_config_se_cpc_primary.h - condition: [se_cpc_primary] + condition: [se_cpc_primary] template_file: - path: config/template/sli_psa_config_autogen.h.jinja