From nobody Fri Aug 20 20:10:23 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 662BA177FED6 for ; Fri, 20 Aug 2021 20:10:41 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Grt6m4jgzz4vfB; Fri, 20 Aug 2021 20:10:40 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f42.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so16543674otf.6; Fri, 20 Aug 2021 13:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tloe/OKGE1ie+y3ZgQK40KaQ/EMipMQ0khQZzkPR9K8=; b=JPeSZQs7v0RjfRCfFMm3KoXWmJiUHGqY4RL0/DiZVcfRr89o62pl5v8gwVh9dq97Es +sPTwLoHQYiXe2oBwGOltDIV6l1upntZLyYqmxOSsuS6QYOGEH+a++ydGY+2ZZH7e4Vm 3K7bwP4l0zARr/altlnRDGxeg72Y2lTyOpZEUVWEXYx+rpcn2HL40ikN+6pGUplFSPQJ GQnSNHLwzxGL1PvYe/J4YvBAAbJUVkis5zuiFoHJbuuYTBl0ymWQD3FyiKo5HdrZQbvt 2xuNuWWLKhYcdxojTwASxYNN19teQnXZbBL0CGtMvIiRzzWXmLat+r/OuEMd86ZCxKj6 yyhA== X-Gm-Message-State: AOAM530BTN1aUhhTvPEPAbpwjriv0k5cI/ieRAGdjy6zofn3X9NRijhy Yvr8RrjcCOzLSrkByU/23a582nOaXkGxwqzzYzMWNYuim7k= X-Google-Smtp-Source: ABdhPJztxZGzdBxJoFFGt98O5F5s5eiQesdLMK69d1c/gWVKHk+EFiCXclJZCqLvCUEJdPLleIEIyiVW2urvIrmMWro= X-Received: by 2002:aca:ba55:: with SMTP id k82mr4420607oif.73.1629490234090; Fri, 20 Aug 2021 13:10:34 -0700 (PDT) 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 References: <20210728172650.GI1648@FreeBSD.org> <20210728172830.GJ1648@FreeBSD.org> <20210728173203.GK1648@FreeBSD.org> <20210728175657.GL1648@FreeBSD.org> <20210728183702.GM1648@FreeBSD.org> <20210729001354.GO1648@FreeBSD.org> <20210729204318.97f009cafd90e44cba40d474@bidouilliste.com> In-Reply-To: <20210729204318.97f009cafd90e44cba40d474@bidouilliste.com> From: Alan Somers Date: Fri, 20 Aug 2021 14:10:23 -0600 Message-ID: Subject: Re: Building multiple kernels with "make release" To: Emmanuel Vadot Cc: Glen Barber , Miroslav Lachman <000.fbsd@quip.cz>, Juraj Lutter , FreeBSD CURRENT Content-Type: multipart/alternative; boundary="0000000000009166a505ca034205" X-Rspamd-Queue-Id: 4Grt6m4jgzz4vfB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.210.42 as permitted sender) smtp.mailfrom=asomers@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEFALL_USER(0.00)[asomers]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.42:from]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.996]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.42:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com] X-ThisMailContainsUnwantedMimeParts: Y --0000000000009166a505ca034205 Content-Type: text/plain; charset="UTF-8" On Thu, Jul 29, 2021 at 12:43 PM Emmanuel Vadot wrote: > On Thu, 29 Jul 2021 00:13:54 +0000 > Glen Barber wrote: > > > 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> > wrote: > > > > > > > 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 > wrote: > > > > >>>> Just on a hunch, could you try with adding > INSTALLKERNEL="${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="GENERIC-NODEBUG" during "make > installkernel" > > > > >>> overrides whatever KERNCONF was set to. But it still only > installs 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 > would have > > > > >> caused this, and I am 95% certain it has worked in the past. > > > > > > > > > > According to Makefile.inc1: > > > > > > > > > > make installkernel KERNCONF=?KERN1 KERN2? > > > > > > > > > > should install KERN1 and KERN2. Similar goes for buildkernel. > > > > > > > > > > Or is there something I am missing? > > > > > > > > Does 'make installkernel KERNCONF=?KERN1 KERN2?' 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=KERN2 KODIR=/boot/kernel.KERN2 > > > > > > > > make installkernel KERNCONF=KERN3 KODIR=/boot/kernel.KERN3 > > > > > > > > > > Miroslav is right. Despite the comment that Juraj found, "make > > > installkernel" only installs the first kernel listed in KERNCONF. > > > > 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). > > You need to set NO_INSTALLEXTRAKERNELS=no for that to happens (yes the > variable name and double no sucks if anyone have a patch for that that > would be awesome). > > > Although, I may be misremembering, and 'kernel.KERN2.txz' may be created > > instead, although not installed/extracted. Though, we are going back at > > least seven years, and I do not even remember what I had eaten for > > dinner last night, so there's that... > > > > Glen > > > > > -- > Emmanuel Vadot > NO_INSTALLEXTRAKERNELS=no works for "make installkernel". However, it still doesn't work with release.sh. It seems there is work left to do. -Alan --0000000000009166a505ca034205--