HomeFreeBSD

mkimg: We always want the last block of the last inserted partition

Description

mkimg: We always want the last block of the last inserted partition

Even with an absolute offset we want to know the last block the partition
otherwise we endup with an image the size of the metadata.
This allow to create image with the ESP placed at a specific position which
is useful on arm/arm64 where u-boot have always a hard time to read the ESP
if it's not aligned on 512k.
mkimg -v -o sdcard -s gpt -p efi::54M:1M -p freebsd-ufs::1G
now works.

MFC after: 3 days
Approved by: re (gjb)
(cherry picked from commit 3b6268bb9e4aea939c4ce7f37353174aa90e6751)
(cherry picked from commit 9c5f4f8e4ee8261a669ab99257bffd439bad6635)

Details

Provenance
manuAuthored on Feb 25 2021, 3:34 PM
Parents
rG90cf334642c2: pwm_backlight: Add MODULE_DEPEND on backlight
Branches
Unknown
Tags
Unknown