Build: Replace build param TFM_PSA_API with LIB_MODEL

In TF-M build sys, TFM_PSA_API is no more used to set Lib/IPC model.
To build Library model, TFM_LIB_MODEL needs to be set to True.
TF-M Open CI also needs to align with this change.

Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Ic220207f078b6dc158bf378403d42911451e4bec
diff --git a/memory_footprint.py b/memory_footprint.py
index cf8c472..dfa5537 100644
--- a/memory_footprint.py
+++ b/memory_footprint.py
@@ -97,43 +97,43 @@
 
     try :
         cfg = get_configs_by_name([CI_CONFIG])[CI_CONFIG]
-        if (cfg.psa_api and cfg.isolation_level == "1" and
+        if (not cfg.lib_model and cfg.isolation_level == "1" and
             not cfg.test_regression and cfg.test_psa_api == "OFF" and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off" and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "" and cfg.partition_ps == "ON"):
                 name_config = "CoreIPC"
-        elif (not cfg.psa_api and cfg.isolation_level == "1" and
+        elif (cfg.lib_model and cfg.isolation_level == "1" and
             not cfg.test_regression and cfg.test_psa_api == "OFF"      and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off"  and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "" and cfg.partition_ps == "ON"):
                 name_config = "Default"
-        elif (cfg.psa_api and cfg.isolation_level == "2"    and
+        elif (not cfg.lib_model and cfg.isolation_level == "2"    and
             not cfg.test_regression and cfg.test_psa_api == "OFF"     and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off" and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "" and cfg.partition_ps == "ON"):
                 name_config = "CoreIPCTfmLevel2"
-        elif (not cfg.psa_api and cfg.isolation_level == "1" and
+        elif (cfg.lib_model and cfg.isolation_level == "1" and
             not cfg.test_regression and cfg.test_psa_api == "OFF"      and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off"  and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "profile_small" and cfg.partition_ps == "OFF"):
                 name_config = "DefaultProfileS"
-        elif (not cfg.psa_api and cfg.isolation_level == "1" and
+        elif (cfg.lib_model and cfg.isolation_level == "1" and
             not cfg.test_regression and cfg.test_psa_api == "OFF"      and
             cfg.cmake_build_type == "Minsizerel" and cfg.with_otp == "off"  and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "profile_small" and cfg.partition_ps == "OFF"):
                 name_config = "MinSizeProfileS"
-        elif (cfg.psa_api and cfg.isolation_level == "2" and
+        elif (not cfg.lib_model and cfg.isolation_level == "2" and
             not cfg.test_regression and cfg.test_psa_api == "OFF"     and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off"  and
             cfg.with_bl2 and cfg.with_ns and
             cfg.profile == "profile_medium" and cfg.partition_ps == "ON"):
                 name_config = "DefaultProfileM"
-        elif (cfg.psa_api and cfg.isolation_level == "3" and
+        elif (not cfg.lib_model and cfg.isolation_level == "3" and
             not cfg.test_regression and cfg.test_psa_api == "OFF"     and
             cfg.cmake_build_type == "Release" and cfg.with_otp == "off"  and
             cfg.with_bl2 and cfg.with_ns and