[dunfell/master,V2,08/12] recipes-core: images: Add a basic bootstrap base image

Message ID 20220318143735.17642-9-nm@ti.com
State Superseded
Delegated to: Ryan Eatmon
Headers show
Series recipes-core: Add a bootstrap Linux image | expand

Commit Message

Nishanth Menon March 18, 2022, 2:37 p.m. UTC
Since we do not wish to modify the tiny-image from anything but really
tiny, lets use that infrastructure and add the bootstrap package group
to create initramfs (not exactly a completely usable system) which can
be used for basic board bringup.

This generates cpio around 36-40MB which should be usually fine for
even smaller systems (Ofcourse, this is much larger than tiny-image
which is around 6MB size). The packages are organized per size to
allow easier customization if desired.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes since v1:
* review comments incorporated.

V1: https://lore.kernel.org/all/20220309021316.28370-5-nm@ti.com/

 .../images/tisdk-bootstrap-base-image.bb      | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb

Patch

diff --git a/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
new file mode 100644
index 000000000000..59cfaef1e642
--- /dev/null
+++ b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
@@ -0,0 +1,21 @@ 
+# Arago TI SDK bootstrap base image for initramfs
+#
+# Image meant for basic system verification of linux kernel. Intended as
+# basic test system, this image does not package the kernel in the
+# standard /boot folder in rootfs. Instead, it provides a base
+# rootfs with enough basic board bringup utilities allowing kernel to be
+# deployed elsewhere (tftp/separate boot partition/jtag log etc..) and
+# maybe used for basic platform bringup (bootstrap) activities.
+
+require arago-tiny-image.inc
+
+IMAGE_FSTYPES += "cpio cpio.xz"
+
+ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL ?= ""
+
+IMAGE_INSTALL += " \
+	packagegroup-arago-bootstrap \
+	${ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL} \
+"
+
+export IMAGE_BASENAME = "tisdk-bootstrap-base-image"