Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2026 18:04:54 +0000
From:      Lexi Winter <ivy@freebsd.org>
To:        freebsd-pkgbase@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Custom Kernel PKGBASE Package
Message-ID:  <abWjRmxBD4Z0LZPI@amaryllis.le-fay.org>
In-Reply-To: <vobtzfbedqwapbqyabam@dgol>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
vermaden wrote in <vobtzfbedqwapbqyabam@dgol>:
> its not hard to create a 'generic' PKGBASE set:
> # cd /usr/src
> # make buildworld buildkernel
> # make packages

you almost certainly want to be using make update-packages here
(see build(7)) to avoid changing the version number of packages
whose contents haven't changed.

> My question is - how to build kernel PKGBASE package with CUSTOM
> kernel config - to get something like FreeBSD-kernel-CUSTOM-15.0
> alongside FreeBSD-kernel-generic-15.0 package so they will not collide
> on 'pkg install' command?

% make KERNCONF='GENERIC CUSTOM' buildkernel update-packages

the first kernel in $KERNCONF will be installed in /boot/kernel,
the rest will be installed in /boot/kernel.NAME.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCabWjQwAKCRD1nT63mIK/
YJY/AQD4xN9d9McKbVZW3yNMHq5LvyCOxG19jYGgUVwjFGprgAD+I6WmUqpbFwFV
FSnxqL7A2A30HLTc+T/BZmsmN+j5AQc=
=2xLr
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?abWjRmxBD4Z0LZPI>