From nobody Wed Jul 28 17:11:48 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 3B3781278C2B for ; Wed, 28 Jul 2021 17:12:06 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 4GZgFK3jJ4z3jjJ for ; Wed, 28 Jul 2021 17:12:05 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f50.google.com with SMTP id v8-20020a0568301bc8b02904d5b4e5ca3aso2783222ota.13 for ; Wed, 28 Jul 2021 10:12:05 -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:from:date:message-id:subject:to; bh=JnMztRn6wu8+mzIR6NejD7JbvZbrCLrVJRYhyGOIXbI=; b=cGREchWtR4WuqwzaKu67NzipjWWeiUsq+vIVMzjvpeb7FY+QxO36uTQjOKXEQFOdkq xME199On/0jODRRFNfdQwBdnmy7lXuxV5kksg72QQUMP7wtiU9dlQ9zmLFYHNeWBw6eN fB2q3fNWICkcmjN/lhMxpw50iiQ7FiZ/HvHONYEFHLEoazlxB7LLZh0SzIQR4w4HVg4J bsu0sgYTSWS6bSxEk7ZWJfiSk4/jbzYSYIyGsquyDe7HFLhB1Ei42RUEuBf9d9bLrhMQ 8v4GSWkMy/FIQiwSGibdH+W0G3Lj8FQ1ff3N3m9PoEVr4nQ8d0kgXeF3T5b5Gt7ZRr+G QNPg== X-Gm-Message-State: AOAM531ssqbwGVehZfieT85PbFxGQ+LAYiHYRTqVAqdhET5BXYpMfG6N eN63zh65hOvuBiZLsLNKWQt6wT0nVUKwoP+eHhqTGqREgON+PA== X-Google-Smtp-Source: ABdhPJwZHp1adueFRIJM5eK00/+SbU4UJ3Zv5jR6E0MNiWhmQt48at9Qy5Sr4x3GE+uJbRfhiHuKchEVHQDbunjpcIY= X-Received: by 2002:a9d:7982:: with SMTP id h2mr712837otm.291.1627492318949; Wed, 28 Jul 2021 10:11:58 -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 From: Alan Somers Date: Wed, 28 Jul 2021 11:11:48 -0600 Message-ID: Subject: Building multiple kernels with "make release" To: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="0000000000008bb69805c83215a7" X-Rspamd-Queue-Id: 4GZgFK3jJ4z3jjJ 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.50 as permitted sender) smtp.mailfrom=asomers@gmail.com X-Spamd-Result: default: False [2.00 / 15.00]; ARC_NA(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; FREEFALL_USER(0.00)[asomers]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.50:from]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_DN_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.50:from]; NEURAL_SPAM_SHORT(1.00)[0.996]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; MAILMAN_DEST(0.00)[freebsd-current] X-ThisMailContainsUnwantedMimeParts: Y --0000000000008bb69805c83215a7 Content-Type: text/plain; charset="UTF-8" Is it possible to build multiple different kernels and include them all in a release image? release.conf says so. But from experiment, what I see is that: * release.sh does pass both kernels in the KERNCONF variable to "make buildkernel" * "make buildkernel" dutifully builds both * BUT, "make installkernel" only installs the first kernel and ignores the rest * Only the first kernel ends up in the final image * It's not really clear where an alternate kernel should go, anyway. Probably someplace like /boot/kernel.debug , but release.conf doesn't provide a way to specify that. So is the "multiple kernels in release.conf" feature unfinished? If so, does anybody have a good idea about the best way to finish it? https://github.com/freebsd/freebsd-src/blob/7045b1603bdf054145dd958a4acc17b410fb62a0/release/release.conf.sample#L32 -Alan --0000000000008bb69805c83215a7--