ApUg/WA4J1zNl6UTVAz89Q6jBv8PuvGhZ2I+BrCZqnMyyifrbxpBDm0ElLw=@freebsd.org X-Gm-Message-State: AOJu0YyTh3qoeLGuCl5Lsx9rL78yNEaUrKcWKHLYgxz5qVaUnO18a9Xe zV2ubIjUwKFSIJhsa61/91XxUWzoy4DqoYnGd16NSknHbmr2/W6kF5B5zMS9zf2CyIY+piYTnlf JdHj4tlO042178+j7qz888Cmh5ogsWHFY2YIA X-Gm-Gg: ASbGncuW9kVkYAtlblcy4RXhA7xZ/Q2/t+PcvFnpYdT65Aw6VadJNiDLg4wa5wulsTa dxy5mNsyn2vmJH0g8FKEuxcg8MuwP1LdFfww19IpWwhyhyFanyh9XSK1Q/nKOk8cr4V6q0dIP/o DJfQX9LBDTLDOA3maywf3ISPugCO73EdCaVtS1PusSaRuYH09n7emd0LVnDyBqNcehuCndNU5Os fQJnA411YvrmZL+VsXvFYEwxP+oe/4/uGUpdOtDW9KUJwHJiTpVyu5NAdMoMLBdMox5sQc= X-Google-Smtp-Source: AGHT+IEw7IZS7BbxHiyj5UE5KPNBNn7Br9+O0hotIjQlSHyTYu5qw1VrXrfHz8N3xRk1YylS3Be8wE7Krcpo29f7JL8= X-Received: by 2002:a05:6402:3514:b0:639:720d:73f with SMTP id 4fb4d7f45d1cf-63c1f63582bmr372989a12.15.1760629497393; Thu, 16 Oct 2025 08:44:57 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <575313120.20251014120303.ref@yahoo.com> <575313120.20251014120303@yahoo.com> In-Reply-To: From: Alan Somers Date: Thu, 16 Oct 2025 09:44:44 -0600 X-Gm-Features: AS18NWAPBbqvbSXAUvevUc_fedFpONo9_Kh09UgPPLzUhLcGW25XfyI38Y-VDvg Message-ID: Subject: Re: multiple kernels with the same world To: Anthony Pankov , freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c5f4b10641487fc7" X-Spamd-Bar: / X-Spamd-Result: default: False [-0.94 / 15.00]; NEURAL_HAM_LONG(-0.99)[-0.994]; NEURAL_HAM_SHORT(-0.98)[-0.976]; NEURAL_SPAM_MEDIUM(0.93)[0.932]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com,freebsd.org]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[asomers]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.53:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; MISSING_XM_UA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.53:from]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4cnXMb1qlBz3RXq --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 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
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 upda= te-packages

the first kernel listed in KERNCONF will be installed in /boot/kernel,
the rest will be installed in /boot/kernel.NAME.=C2=A0 for consistency, i prefer to always build GENERIC as the first kernel, but there's no
actual requirement to do that.

I do thi= s all the time, too.=C2=A0 One limitation is that it doesn't currently = with "make release" , but there's an open PR for that.
<= div>https://gi= thub.com/freebsd/freebsd-src/pull/1566
--000000000000c5f4b10641487fc7--