diff mbox series

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

Message ID 20220907213959.1115886-2-andrei@gherzan.com
State New
Headers show
Series [meta-raspberrypi,1/4] machine: Define firmware packages from separate variables | expand

Commit Message

Andrei Gherzan Sept. 7, 2022, 9:39 p.m. UTC
From: Andrei Gherzan <andrei.gherzan@huawei.com>

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@huawei.com>
---
 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 mbox series

Patch

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@huawei.com>
+#
+# 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@huawei.com>
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE = "raspberrypi3"
+
+TMPDIR = "${TOPDIR}/tmp-multi-raspberrypi3"