refactor(stm32mp1): split compilations per boot devices

To reduce BL2 size and leave bigger room for BL32, BL2 is compiled
for a given boot device. The default config keeps SD-card and eMMC,
as they use the same MMC framework.
Add the required files to tf-l1-build-plat.
Remove bash line from group/tf-l1-build-plat/stm32mp1-default:nil.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I0f5fddabcfde34b156915c2d0d375bd1b7d2a889
diff --git a/group/tf-l1-build-plat/stm32mp1-default:nil b/group/tf-l1-build-plat/stm32mp1-default:nil
index b5958ec..37b17ff 100644
--- a/group/tf-l1-build-plat/stm32mp1-default:nil
+++ b/group/tf-l1-build-plat/stm32mp1-default:nil
@@ -1,6 +1,5 @@
-#!/usr/bin/env bash
 #
-# Copyright (c) 2019-2021 Arm Limited. All rights reserved.
+# Copyright (c) 2019-2022 Arm Limited. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
diff --git a/group/tf-l1-build-plat/stm32mp1-raw-nand:nil b/group/tf-l1-build-plat/stm32mp1-raw-nand:nil
new file mode 100644
index 0000000..0849ee7
--- /dev/null
+++ b/group/tf-l1-build-plat/stm32mp1-raw-nand:nil
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/group/tf-l1-build-plat/stm32mp1-spi-nand:nil b/group/tf-l1-build-plat/stm32mp1-spi-nand:nil
new file mode 100644
index 0000000..0849ee7
--- /dev/null
+++ b/group/tf-l1-build-plat/stm32mp1-spi-nand:nil
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/group/tf-l1-build-plat/stm32mp1-spi-nor:nil b/group/tf-l1-build-plat/stm32mp1-spi-nor:nil
new file mode 100644
index 0000000..0849ee7
--- /dev/null
+++ b/group/tf-l1-build-plat/stm32mp1-spi-nor:nil
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/tf_config/stm32mp1-default b/tf_config/stm32mp1-default
index 6ad9c57..5ed91a8 100644
--- a/tf_config/stm32mp1-default
+++ b/tf_config/stm32mp1-default
@@ -4,8 +4,5 @@
 CROSS_COMPILE=arm-none-eabi-
 PLAT=stm32mp1
 STM32MP_EMMC=1
-STM32MP_RAW_NAND=1
 STM32MP_SDMMC=1
-STM32MP_SPI_NAND=1
-STM32MP_SPI_NOR=1
 DTB_FILE_NAME=stm32mp157c-ev1.dtb
diff --git a/tf_config/stm32mp1-raw-nand b/tf_config/stm32mp1-raw-nand
new file mode 100644
index 0000000..de4dcd6
--- /dev/null
+++ b/tf_config/stm32mp1-raw-nand
@@ -0,0 +1,7 @@
+AARCH32_SP=sp_min
+ARCH=aarch32
+ARM_ARCH_MAJOR=7
+CROSS_COMPILE=arm-none-eabi-
+PLAT=stm32mp1
+STM32MP_RAW_NAND=1
+DTB_FILE_NAME=stm32mp157c-ev1.dtb
diff --git a/tf_config/stm32mp1-spi-nand b/tf_config/stm32mp1-spi-nand
new file mode 100644
index 0000000..4941e3a
--- /dev/null
+++ b/tf_config/stm32mp1-spi-nand
@@ -0,0 +1,7 @@
+AARCH32_SP=sp_min
+ARCH=aarch32
+ARM_ARCH_MAJOR=7
+CROSS_COMPILE=arm-none-eabi-
+PLAT=stm32mp1
+STM32MP_SPI_NAND=1
+DTB_FILE_NAME=stm32mp157c-ev1.dtb
diff --git a/tf_config/stm32mp1-spi-nor b/tf_config/stm32mp1-spi-nor
new file mode 100644
index 0000000..5321dc8
--- /dev/null
+++ b/tf_config/stm32mp1-spi-nor
@@ -0,0 +1,7 @@
+AARCH32_SP=sp_min
+ARCH=aarch32
+ARM_ARCH_MAJOR=7
+CROSS_COMPILE=arm-none-eabi-
+PLAT=stm32mp1
+STM32MP_SPI_NOR=1
+DTB_FILE_NAME=stm32mp157c-ev1.dtb