From nobody Sat Aug 21 17:14:15 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CE095178C5AD for ; Sat, 21 Aug 2021 17:14:26 +0000 (UTC) (envelope-from gjb@freebsd.org) Received: from mail0.glenbarber.us (mail0.glenbarber.us [208.86.227.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail0.glenbarber.us", Issuer "Gandi Standard SSL CA 2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GsQ8y5HS5z3msl; Sat, 21 Aug 2021 17:14:26 +0000 (UTC) (envelope-from gjb@freebsd.org) Received: from smtpclient.apple (unknown [IPv6:2607:fb90:62a9:1938:f53d:413a:a89b:9851]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id 85AE052D41; Sat, 21 Aug 2021 17:14:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail0.glenbarber.us 85AE052D41 Content-Type: multipart/alternative; boundary=Apple-Mail-E1015A03-55E8-4857-8960-D880F34501E6 Content-Transfer-Encoding: 7bit List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Building multiple kernels with "make release" From: Glen Barber In-Reply-To: Date: Sat, 21 Aug 2021 13:14:15 -0400 Cc: Emmanuel Vadot , Miroslav Lachman <000.fbsd@quip.cz>, Juraj Lutter , FreeBSD CURRENT Message-Id: <94D96FE6-BFB6-4629-A9EA-32168741861E@freebsd.org> References: To: Alan Somers X-Mailer: iPhone Mail (18G82) X-Rspamd-Queue-Id: 4GsQ8y5HS5z3msl X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail-E1015A03-55E8-4857-8960-D880F34501E6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It is on my list of things to look into next week. Glen Sent from my phone. Please excuse my brevity and/or typos. > On Aug 20, 2021, at 4:10 PM, Alan Somers wrote: >=20 > =EF=BB=BF >> On Thu, Jul 29, 2021 at 12:43 PM Emmanuel Vadot w= rote: >> On Thu, 29 Jul 2021 00:13:54 +0000 >> Glen Barber wrote: >>=20 >> > On Wed, Jul 28, 2021 at 06:00:28PM -0600, Alan Somers wrote: >> > > On Wed, Jul 28, 2021 at 5:52 PM Miroslav Lachman <000.fbsd@quip.cz> w= rote: >> > >=20 >> > > > On 28/07/2021 20:46, Juraj Lutter wrote: >> > > > > >> > > > > >> > > > >> On 28 Jul 2021, at 20:37, Glen Barber 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 w= rote: >> > > > >>>> 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 d= etails >> > > > >>>> elude me at the moment. >> > > > >>>> >> > > > >>> >> > > > >>> Setting INSTALLKERNEL=3D"GENERIC-NODEBUG" during "make install= kernel" >> > > > >>> overrides whatever KERNCONF was set to. But it still only inst= alls one >> > > > >>> 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 wou= ld have >> > > > >> caused this, and I am 95% certain it has worked in the past. >> > > > > >> > > > > According to Makefile.inc1: >> > > > > >> > > > > make installkernel KERNCONF=3D?KERN1 KERN2? >> > > > > >> > > > > should install KERN1 and KERN2. Similar goes for buildkernel. >> > > > > >> > > > > Or is there something I am missing? >> > > > >> > > > Does 'make installkernel KERNCONF=3D?KERN1 KERN2?' really install b= oth >> > > > 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 >> > > > >> > >=20 >> > > Miroslav is right. Despite the comment that Juraj found, "make >> > > installkernel" only installs the first kernel listed in KERNCONF. >> >=20 >> > Good find. I honestly thought this worked as expected versus as >> > written. In fact, I *thought* secondary, tertiary, etc. kernels were >> > installed as /boot/kernel.KERN2, /boot/kernel.KERN3 (using the example >> > above). >>=20 >> You need to set NO_INSTALLEXTRAKERNELS=3Dno for that to happens (yes the= >> variable name and double no sucks if anyone have a patch for that that >> would be awesome). >>=20 >> > Although, I may be misremembering, and 'kernel.KERN2.txz' may be create= d >> > instead, although not installed/extracted. Though, we are going back a= t >> > least seven years, and I do not even remember what I had eaten for >> > dinner last night, so there's that... >> >=20 >> > Glen >> >=20 >>=20 >>=20 >> --=20 >> Emmanuel Vadot >=20 > NO_INSTALLEXTRAKERNELS=3Dno works for "make installkernel". However, it s= till doesn't work with release.sh. It seems there is work left to do. > -Alan