All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-ti][master][PATCH v2] ti-core-initramfs: Shrink size of initramfs
@ 2026-01-09 18:27 Ryan Eatmon
  2026-01-09 18:38 ` PRC Automation
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ryan Eatmon @ 2026-01-09 18:27 UTC (permalink / raw)
  To: Praneeth Bajjuri, Denys Dmytriyenko, meta-ti

License-Update: Moving away from packagegroup-core-boot.bb removed the
LICENSE setting.  Just adding it back in.

It looks like we were modelling this initramfs off of the wrong example
from poky.  This setup produces a much smaller initramfs.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
v2: Add missing License-Udate.

 .../packagegroup-ti-core-initramfs.bb         | 12 ++++---
 .../recipes-ti/initramfs/ti-core-initramfs.bb | 33 +++++++++----------
 2 files changed, 22 insertions(+), 23 deletions(-)

diff --git a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
index 86b69aff..c759808c 100644
--- a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
+++ b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
@@ -1,16 +1,18 @@
 SUMMARY = "Minimal initramfs for boot requirements"
 
-require recipes-core/packagegroups/packagegroup-core-boot.bb
+LICENSE = "MIT"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit packagegroup
 
 TI_INITRAMFS_KERNEL_MODULES ?= ""
 
 RDEPENDS:${PN} += "\
     ${TI_INITRAMFS_KERNEL_MODULES} \
+    ${VIRTUAL-RUNTIME_base-utils} \
+    base-passwd \
     initramfs-framework-base \
     initramfs-module-udev \
     initramfs-module-nfsrootfs \
-    nfs-utils \
-    nfs-utils-client \
 "
-
-RDEPENDS:${PN}:remove = "grub-efi kernel"
diff --git a/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb
index 1a102d82..223fef7a 100644
--- a/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb
+++ b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb
@@ -7,29 +7,26 @@ DESCRIPTION = "Image meant to probe boot essential modules\
 
 LICENSE = "MIT"
 
-inherit core-image
-
-IMAGE_NAME = "ti-core-initramfs"
-
-IMAGE_NAME_SUFFIX = ""
+INITRAMFS_FSTYPES = "cpio cpio.xz"
 
-IMAGE_FEATURES:remove = "package-management"
+INITRAMFS_MAXSIZE = "65536"
 
-INITRAMFS_FSTYPES = "cpio cpio.xz"
+IMAGE_NAME = "ti-core-initramfs"
 
-IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+export IMAGE_BASENAME = "${IMAGE_NAME}"
 
 PACKAGE_INSTALL = "packagegroup-ti-core-initramfs"
 
-export IMAGE_BASENAME = "${IMAGE_NAME}"
+# Ensure the initramfs only contains the bare minimum
+IMAGE_FEATURES = ""
+IMAGE_LINGUAS = ""
 
-IMAGE_OVERHEAD_FACTOR = "1.1"
+# on the kernel image.
+PACKAGE_EXCLUDE = "kernel-image-*"
+
+IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+IMAGE_NAME_SUFFIX ?= ""
+IMAGE_ROOTFS_SIZE = "8192"
+IMAGE_ROOTFS_EXTRA_SPACE = "0"
 
-# To further reduce the size of the rootfs, remove the /boot directory from
-# the final image this is usually done by adding RDEPENDS_kernel-base = ""
-# in the configuration file. In our case we can't use this method. Instead we
-# just wipe out the content of "/boot" before creating the image.
-ROOTFS_POSTPROCESS_COMMAND += "empty_boot_dir; "
-empty_boot_dir () {
-	rm -rf ${IMAGE_ROOTFS}/boot/*
-}
+inherit image
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-03 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09 18:27 [meta-ti][master][PATCH v2] ti-core-initramfs: Shrink size of initramfs Ryan Eatmon
2026-01-09 18:38 ` PRC Automation
2026-01-20 20:52 ` Denys Dmytriyenko
     [not found] ` <188C8BB97D98E175.3496637@lists.yoctoproject.org>
2026-01-21  0:14   ` Denys Dmytriyenko
     [not found]   ` <188C96B95948D0CB.2979268@lists.yoctoproject.org>
2026-02-03 15:35     ` Denys Dmytriyenko
2026-02-03 16:06       ` Ryan Eatmon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.