Lib Model: Fix the build issues for Library Model
1. config_impl.h is not for Library Model, adds #ifdef TFM_PSA_API
for it.
2. Library Model shares the "entry_point" or "entry_init" in manifest
It should also has checks on these attributes.
Change-Id: Ie905794ef0ab1f6a0729d0b16eabf0ec9ac2587f
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/interface/include/psa_config.h b/interface/include/psa_config.h
index 1946e52..bd2cf5b 100644
--- a/interface/include/psa_config.h
+++ b/interface/include/psa_config.h
@@ -24,8 +24,11 @@
*/
#if defined(CONFIG_TFM_BUILDING_SPE)
+#ifdef TFM_PSA_API
/* SPE has specific configurations. */
#include "config_impl.h"
+#endif /* TFM_PSA_API */
+
#include "psa_interface_redirect.h"
#endif