HomeFreeBSD

make packages: Fix edge case of no kernel

Description

make packages: Fix edge case of no kernel

When NO_INSTALLKERNEL and NO_INSTALLEXTRAKERNELS are set, or when
BUILDKERNELS is empty, we can fail to define the create-kernel-packages
make target, which we call unconditionally. So if do not have a kernel
staging dir, go ahead and provide an empty create-kernel-packages so
that when it's used elsewhere, the build succeeds.

This lets me build a tree and package it when I don't have a kernel, for
jails and other similar environments. There's no change if any kernels
are built, since that will provide the necessary make target that does
useful things for that case.

Sponsored by: Netflix

Details

Provenance
impAuthored on Sep 24 2025, 6:41 PM
Parents
rGc7a4cdd09f46: packages: Add descriptions for all packages
Branches
Unknown
Tags
Unknown