On 13-03-15 06:33 AM, Hans Beckérus wrote:
Hi. In an effort to shrink our rootfs by some major numbers we found two
low-hanging fruits that we would like to address before cherry picking
and removing lots of good linux functionality. We have no need for the
uImage (3MB) stored in /boot and also we can leave out the terminfo tree
(2.5MB).
My question here now is if the build system provide functionality to
actually tell the image builder not to include these specific components?

From kernel.bbclass, you just need to clear RDEPENDS_kernel-base
in your .conf files:

# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"

You'll still get your kernel modules installed after making this change.

Bruce

Or do we need to write some post installer for our rootfs that mounts
the image, removes the files, and then umount it?
If we remove inclusion of any kernel modules it seems that /boot is
never populated? But we need the modules. Also, what package brings in
terminfo?
Is it as simple as writing a .bbappend to remove it att deploy time?

Hans



_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to