Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2021 18:00:28 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        Juraj Lutter <otis@freebsd.org>, Glen Barber <gjb@freebsd.org>,  FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Building multiple kernels with "make release"
Message-ID:  <CAOtMX2j_LTg23JGp=Bnd7AE8F_YYc8hfYrQc9e5QKRxkvV-3Rg@mail.gmail.com>
In-Reply-To: <eb876160-fbae-3d09-0ca2-1e044aa51e84@quip.cz>
References:  <CAOtMX2jb1nEJCbo=5he5=oa1vjs_6T_BZZQfNQKVNX3AxbNCqw@mail.gmail.com> <20210728172650.GI1648@FreeBSD.org> <20210728172830.GJ1648@FreeBSD.org> <CAOtMX2gMFykt9RhB8ODCBfJp3KK9uJDvvXxp8PpcdF57OB=g-A@mail.gmail.com> <20210728173203.GK1648@FreeBSD.org> <20210728175657.GL1648@FreeBSD.org> <CAOtMX2i7aAHcwZ=cUptPG9q2SWg5b48KFVybdrnZPrHZbPSKbw@mail.gmail.com> <20210728183702.GM1648@FreeBSD.org> <EC336D9E-93A8-458E-A2B8-1399B87B7181@FreeBSD.org> <eb876160-fbae-3d09-0ca2-1e044aa51e84@quip.cz>

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

On Wed, Jul 28, 2021 at 5:52 PM Miroslav Lachman <000.fbsd@quip.cz> wrote:

> On 28/07/2021 20:46, Juraj Lutter wrote:
> >
> >
> >> On 28 Jul 2021, at 20:37, Glen Barber <gjb@freebsd.org> wrote:
> >>
> >> On Wed, Jul 28, 2021 at 12:05:25PM -0600, Alan Somers wrote:
> >>> On Wed, Jul 28, 2021 at 11:57 AM Glen Barber <gjb@freebsd.org> wrote:
> >>>> Just on a hunch, could you try with adding INSTALLKERNEL=3D"${KERNEL=
}"
> to
> >>>> your release.conf?
> >>>>
> >>>> I now seem to recall some weirdness with this, but the exact details
> >>>> elude me at the moment.
> >>>>
> >>>
> >>> Setting INSTALLKERNEL=3D"GENERIC-NODEBUG"  during "make installkernel=
"
> >>> overrides whatever KERNCONF was set to.  But it still only installs o=
ne
> >>> kernel.  Trying to set that variable to a list doesn't work.
> >>
> >> Ok.  Give me a day or so to try to figure out what is (or isn't)
> >> happening here.  I do not recall any recent-ish changes that would hav=
e
> >> caused this, and I am 95% certain it has worked in the past.
> >
> > According to Makefile.inc1:
> >
> > make installkernel KERNCONF=3D=E2=80=9CKERN1 KERN2=E2=80=9D
> >
> > should install KERN1 and KERN2. Similar goes for buildkernel.
> >
> > Or is there something I am missing?
>
> Does 'make installkernel KERNCONF=3D=E2=80=9CKERN1 KERN2=E2=80=9D' really=
 install both
> kernels? Under which names?
> I have 3 kernels defined in KERNCONF in /etc/make.conf for years. 3
> kernels are built by "make buildkernel" but only one installed by "make
> installkernel".
>
> To install other kernels I use:
>
> make installkernel KERNCONF=3DKERN2 KODIR=3D/boot/kernel.KERN2
>
> make installkernel KERNCONF=3DKERN3 KODIR=3D/boot/kernel.KERN3
>
> Miroslav Lachman
>

Miroslav is right.  Despite the comment that Juraj found, "make
installkernel" only installs the first kernel listed in KERNCONF.
-Alan

--00000000000011b08f05c837cb5d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2j_LTg23JGp=Bnd7AE8F_YYc8hfYrQc9e5QKRxkvV-3Rg>