]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm: Introduce MK_KERNEL_BIN to control generation of kernel.bin
authorWarner Losh <imp@FreeBSD.org>
Fri, 27 Oct 2023 03:10:36 +0000 (21:10 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 27 Oct 2023 03:10:36 +0000 (21:10 -0600)
commit34632ed1a49512f52968736abca66c0420bb576a
tree8229841f0f8ddaae668b889b0d3221a939286d25
parent4f03a2cae8ae96446064da4e8a533ab24172bdcb
arm: Introduce MK_KERNEL_BIN to control generation of kernel.bin

It's sometimes desirable to generate kernel.bin and install it. While
the mainstream has moved on to UEFI booting on arm, some specialized
gear can't support it. For that gear, we unconditionally generate
kernel.bin. Add a knob so that WITH_KERNEL_BIN or WITHOUT_KERNEL_BIN
control its generation and installation. config files should add
'makeoptions WITH_KERNEL_BIN=t' to enable it. Since its use is
specialized, it is off by default now since the arm world has largely
moved on to UEFI.

It only affects arm and arm64 (since those are the only two that support
it).

Sponsored by: Netflix
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D39013
sys/conf/Makefile.arm
sys/conf/Makefile.arm64
sys/conf/kern.opts.mk
sys/conf/kern.post.mk
tools/build/options/WITH_KERNEL_BIN [new file with mode: 0644]