Config: Add stm targets in single entry point

This patch allows to group all stm targets in single cmake entry point.
The stm TARGET_PLATFORM should prefix by "STM".
stm platforms supports CoreIPC, CoreIPCTfmLevel2 and RegressionIPCTfmLevel2
Build with GNUARM toolchain.

Change-Id: I6535420b2304c18f2ab260620c38fef632eb7488
Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
diff --git a/bl2/ext/mcuboot/scripts/macro_parser.py b/bl2/ext/mcuboot/scripts/macro_parser.py
index 3f7feb6..188c650 100644
--- a/bl2/ext/mcuboot/scripts/macro_parser.py
+++ b/bl2/ext/mcuboot/scripts/macro_parser.py
@@ -47,7 +47,7 @@
 # Opens a file that contains the macro of interest, then finds the macro with

 # a regular expression, parses the expression that is defined for the given

 # macro. Lastly it evaluates the expression with the parse_and_sum function

-def evaluate_macro(file, regexp, matchGroupKey, matchGroupData):

+def evaluate_macro(file, regexp, matchGroupKey, matchGroupData, bracketless=False):

     regexp_compiled = re.compile(regexp)

 

     if os.path.isabs(file):

@@ -59,6 +59,9 @@
     macroValue = {}

     with open(configFile, 'r') as macros_preprocessed_file:

         for line in macros_preprocessed_file:

+            if bracketless:

+                line=line.replace("(","")

+                line=line.replace(")","")

             m = regexp_compiled.match(line)

             if m is not None:

                 macroValue[m.group(matchGroupKey)] = \