[meta-raspberrypi][PATCH 2/4] multiconfig: Add multiconfig setup for Raspberry Pi 3+4 images


Andrei Gherzan
 

From: Andrei Gherzan <andrei.gherzan@...>

This defines two multiconfigs:

- raspberrypi: can used to generate an image that support both
Raspberypi 3 and Raspberrypi 4 booting
- raspberrypi3: used as a dependency for the above

Signed-off-by: Andrei Gherzan <andrei.gherzan@...>
---
conf/multiconfig/raspberrypi.conf | 30 ++++++++++++++++++++++++++++++
conf/multiconfig/raspberrypi3.conf | 7 +++++++
2 files changed, 37 insertions(+)
create mode 100644 conf/multiconfig/raspberrypi.conf
create mode 100644 conf/multiconfig/raspberrypi3.conf

diff --git a/conf/multiconfig/raspberrypi.conf b/conf/multiconfig/raspberrypi.conf
new file mode 100644
index 0000000..2b6d6c3
--- /dev/null
+++ b/conf/multiconfig/raspberrypi.conf
@@ -0,0 +1,30 @@
+# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@...>
+#
+# SPDX-License-Identifier: MIT
+
+TMPDIR = "${TOPDIR}/tmp-multi-raspberrypi"
+
+# Base it on Raspberry Pi 4 (32 bit)
+MACHINE = "raspberrypi4"
+
+#
+# Add boot support for:
+# - Raspberry Pi 3 (32 bit)
+#
+
+# Make sure the kernel is deployed for all the supported targets.
+do_image_wic[mcdepends] += " \
+ mc:${BB_CURRENT_MC}:raspberrypi3:virtual/kernel:do_deploy \
+"
+
+# Include firmware for all the supported targets.
+MACHINE_EXTRA_RRECOMMENDS:append = " \
+ ${RASPBERRYPI_3_FIRMWARE_PACKAGES} \
+"
+
+# Deploy the kernel images for all the supported targets in the boot partition.
+# FIXME: No support for u-boot (yet).
+RASPBERRYPI_3_MULTI_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-multi-raspberrypi3/deploy/images/raspberrypi3"
+IMAGE_BOOT_FILES:append = " \
+ ${RASPBERRYPI_3_MULTI_DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE_DIRECT};${RASPBERRYPI_3_KERNEL} \
+"
diff --git a/conf/multiconfig/raspberrypi3.conf b/conf/multiconfig/raspberrypi3.conf
new file mode 100644
index 0000000..9fa6245
--- /dev/null
+++ b/conf/multiconfig/raspberrypi3.conf
@@ -0,0 +1,7 @@
+# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@...>
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE = "raspberrypi3"
+
+TMPDIR = "${TOPDIR}/tmp-multi-raspberrypi3"
--
2.25.1

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.