Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2025 09:44:44 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Anthony Pankov <anthony.pankov@yahoo.com>, freebsd-hackers@freebsd.org
Subject:   Re: multiple kernels with the same world
Message-ID:  <CAOtMX2gkHmRRoCU_a8NipvC9wrAUDNXCdA8Ha3ibsuo-vNRj6w@mail.gmail.com>
In-Reply-To: <aO4TYzABsCeWqbEW@amaryllis.le-fay.org>
References:  <575313120.20251014120303.ref@yahoo.com> <575313120.20251014120303@yahoo.com> <aO4TYzABsCeWqbEW@amaryllis.le-fay.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c5f4b10641487fc7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 14, 2025 at 3:10=E2=80=AFAM Lexi Winter <ivy@freebsd.org> wrote=
:

> Anthony Pankov wrote in <575313120.20251014120303@yahoo.com>:
> > I wander can I build multiple kernel from the same sources while using
> > once builded world?
> >
> > My aim is to have basepkgs containing different kernels. It would be
> > nice to have FreeBSD-kernel-general-*.pkg,
> > FreeBSD-kernel-virtualmachine-*.pkg etc. in the same base package
> > repository.
>
> % make KERNCONF=3D'GENERIC FOO BAR BAZ' buildworld buildkernel
> update-packages
>
> the first kernel listed in KERNCONF will be installed in /boot/kernel,
> the rest will be installed in /boot/kernel.NAME.  for consistency, i
> prefer to always build GENERIC as the first kernel, but there's no
> actual requirement to do that.
>

I do this all the time, too.  One limitation is that it doesn't currently
with "make release" , but there's an open PR for that.
https://github.com/freebsd/freebsd-src/pull/1566

--000000000000c5f4b10641487fc7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote gmail_quote_container"><div dir=
=3D"ltr" class=3D"gmail_attr">On Tue, Oct 14, 2025 at 3:10=E2=80=AFAM Lexi =
Winter &lt;<a href=3D"mailto:ivy@freebsd.org">ivy@freebsd.org</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Anthony Pankov=
 wrote in &lt;<a href=3D"mailto:575313120.20251014120303@yahoo.com" target=
=3D"_blank">575313120.20251014120303@yahoo.com</a>&gt;:<br>
&gt; I wander can I build multiple kernel from the same sources while using=
<br>
&gt; once builded world?<br>
&gt; <br>
&gt; My aim is to have basepkgs containing different kernels. It would be<b=
r>
&gt; nice to have FreeBSD-kernel-general-*.pkg,<br>
&gt; FreeBSD-kernel-virtualmachine-*.pkg etc. in the same base package<br>
&gt; repository.<br>
<br>
% make KERNCONF=3D&#39;GENERIC FOO BAR BAZ&#39; buildworld buildkernel upda=
te-packages<br>
<br>
the first kernel listed in KERNCONF will be installed in /boot/kernel,<br>
the rest will be installed in /boot/kernel.NAME.=C2=A0 for consistency, i<b=
r>
prefer to always build GENERIC as the first kernel, but there&#39;s no<br>
actual requirement to do that.<br></blockquote><div><br></div><div>I do thi=
s all the time, too.=C2=A0 One limitation is that it doesn&#39;t currently =
with &quot;make release&quot; , but there&#39;s an open PR for that.</div><=
div><a href=3D"https://github.com/freebsd/freebsd-src/pull/1566">https://gi=
thub.com/freebsd/freebsd-src/pull/1566</a></div></div></div>

--000000000000c5f4b10641487fc7--



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