freebsd-src/release
Mitchell Horne 2af03ebfb8 release: make SD card partition layout more flexible
Currently the partition layout is hardcoded to create an EFI/FAT
partition and a UFS root partition, with some logic to handle GPT/MBR
differences.

On RISC-V platforms we are seeing the emerging pattern that firmware
should be placed in a partition of a known type, rather than just a
known sector of the disk. Thus, some functionality is needed to
customize the layout for SD card images.

Add a hook, arm_create_partitions(), which can be overridden to insert
additional platform-specific partitions, possibly preceding the standard
EFI and UFS ones. A couple of new variables are added to track the
indices, e.g. ROOTFSPART_SUFFIX=p2.

In a couple places this de-duplicates the GPT/MBR logic.

Reviewed by:	manu, karels, imp
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D43848
2024-02-14 11:16:54 -04:00
..
amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
arm release: remove arm/armv6 RPI-B configuration file 2023-08-31 19:24:38 -04:00
arm64 arm64/RPI: enable powerd by default on arm64-aarch64-RPI images 2024-01-05 13:41:24 -06:00
i386 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
packages Reapply "pkgbase: Create a FreeBSD-dtb package" 2024-02-03 09:49:12 +01:00
pkg_repos Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
powerpc powerpc/generate-hfs.sh: Don't include $FreeBSD$ in prefix to uuencoded image 2023-09-25 07:55:18 -07:00
riscv Increase the size of riscv GENERICSD images to 6 GB 2024-01-15 07:28:53 -06:00
scripts Reapply "pkgbase: Create a FreeBSD-dtb package" 2024-02-03 09:49:12 +01:00
tools release: make SD card partition layout more flexible 2024-02-14 11:16:54 -04:00
Makefile release: rework distributions list 2024-01-24 09:13:51 -05:00
Makefile.azure releng-azure: Add ZFS support to Azure image buliding and uploading 2023-08-30 01:40:39 +08:00
Makefile.ec2 EC2: Flavour existing AMIs as "base" 2023-09-28 15:18:46 -07:00
Makefile.firecracker Firecracker: Make root disk configurable 2023-08-07 09:21:08 -07:00
Makefile.gce releng-gce: Advertise the availability of UEFI support in GCE images. 2024-01-26 19:09:39 -08:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.mirrors Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.vagrant Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.vm release: Add AZURE to CLOUDWARE 2024-02-08 13:49:01 +08:00
rc.local bsdinstall release: Start installer on multiple consoles 2022-10-03 17:09:17 +01:00
release.conf.sample release/oci: add Oracle Cloud image builder 2022-11-27 11:12:02 +00:00
release.sh Revert "release.sh: Add -jN to make release" 2024-01-28 21:43:56 -08:00