linux-automation / meta-lxatac

Build your own LXA TAC images and bundles
MIT License
5 stars 15 forks source link

meta-lxatac-bsp: emmc-image: build smaller images (faster) #69

Closed hnez closed 11 months ago

hnez commented 11 months ago

This PR does three things:

Things I am not too sure about:

The last one I can test, for the rest I would be glad about some feedback.


¹ Which is the end of the image but has nothing to do with the end of the device the image is written to, where the header should be.

rohieb commented 11 months ago

The seond one you could also check by inspecting the DEPENDS variable in the output of bitbake -e emmc-image.

Edit: Ah, the do_genimage[depends] += "${GENIMAGE_ROOTFS_IMAGE}:do_image_complete" should do the trick, as long as the do_image_complete task in lxatac-core-image-base creates the ext4 image.

hnez commented 11 months ago

Seeing the core and base in the image name always irks me a little bit, as it is not very core-y or base-y with all the development tools. We should define an actual minimal image in the future and derive our full image with all the tools from there. (But that's not something we should do or discuss here)

hnez commented 11 months ago

As it turns out the rootfs was not resized to match the partition as we wanted it to. Newer systemd versions ship a systemd-growfs-root.service that can help us here, so I've backported it for now. Hopefully we can throw away the backport very soon.