configs/stm32mp157: use common genimage config file for stm32mp157 boards
authorBartosz Bilas <b.bilas@grinn-global.com>
Sat, 21 Mar 2020 13:32:18 +0000 (14:32 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 21 Mar 2020 14:27:17 +0000 (15:27 +0100)
It will be useful for the upcoming introducing stm32mp157a dk2 board.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
board/stmicroelectronics/common/stm32mp157/genimage.cfg [new file with mode: 0644]
board/stmicroelectronics/stm32mp157c-dk2/genimage.cfg [deleted file]
configs/stm32mp157c_dk2_defconfig

diff --git a/board/stmicroelectronics/common/stm32mp157/genimage.cfg b/board/stmicroelectronics/common/stm32mp157/genimage.cfg
new file mode 100644 (file)
index 0000000..d1ce530
--- /dev/null
@@ -0,0 +1,23 @@
+image sdcard.img {
+       hdimage {
+               gpt = "true"
+       }
+
+       partition fsbl1 {
+               image = "u-boot-spl.stm32"
+       }
+
+       partition fsbl2 {
+               image = "u-boot-spl.stm32"
+       }
+
+       partition ssbl {
+               image = "u-boot.img"
+       }
+
+       partition rootfs {
+               image = "rootfs.ext4"
+               partition-type = 0x83
+               bootable = "yes"
+       }
+}
diff --git a/board/stmicroelectronics/stm32mp157c-dk2/genimage.cfg b/board/stmicroelectronics/stm32mp157c-dk2/genimage.cfg
deleted file mode 100644 (file)
index d1ce530..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-image sdcard.img {
-       hdimage {
-               gpt = "true"
-       }
-
-       partition fsbl1 {
-               image = "u-boot-spl.stm32"
-       }
-
-       partition fsbl2 {
-               image = "u-boot-spl.stm32"
-       }
-
-       partition ssbl {
-               image = "u-boot.img"
-       }
-
-       partition rootfs {
-               image = "rootfs.ext4"
-               partition-type = 0x83
-               bootable = "yes"
-       }
-}
index 273eda46a02e6d207c2d50ead865228ee936568b..25a96fa276933f3681ef60cf63696b64670cc023 100644 (file)
@@ -3,7 +3,7 @@ BR2_cortex_a7=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
 BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157c-dk2/overlay/"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/stmicroelectronics/stm32mp157c-dk2/genimage.cfg"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/stmicroelectronics/common/stm32mp157/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.7"