From nobody Wed Sep 24 19:56:26 2025 X-Original-To: dev-commits-src-all@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 4cX6zt497hz68MSW; Wed, 24 Sep 2025 19:56:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cX6zt3W31z4JQd; Wed, 24 Sep 2025 19:56:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758743786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kO348Wiw5Up5ZbURAwNIYCln13j7xP5i1z7GR7nBC9w=; b=vW4h/6UImoWzXWtyhIckUAey4VZJwHx+FSD3r/+bqlLoVEMCK6Ecxixr/DvoejgsyLK7hl fOa1Za9Y7WhZ6Ts/OHs1hMzOzu7arzzu5DOhQZNsJ+a+SOTa1IqJYf4yzbxa7GvoRy335D 3zY+6T4/Wa8QIbHYxI/oedJgzhEoonLvP0xadayAOJUCHM7x9FsOS8dt3MVh0skz79Iz3S c7jyQhnFV8hhiPu2ZqtMVkE5Sv0ksAUgx7bSeQqi/jAjTIYqWzX4PL/U/2iQO/3dWvS6VA wGJUMIYfhh3A6nTuzl3nHJrt55ZvcF6snR5wO3/bqu24avmV2DgJGOxGOBXTpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758743786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kO348Wiw5Up5ZbURAwNIYCln13j7xP5i1z7GR7nBC9w=; b=Mmo4Z241sCuTPRWSRVz3CccMNJ6EQpDc2dvoDej6rTrLJmIB923SAvO5uW2BHbpY39r7z8 vD5k88gHKegwS2Zj7DCnWaTmHnf/gaNDUkXX8ESmdk6zea6/DydPyG3WWA9QgNytb+Xhb/ FSLHONO8Ux9K4WDCB4MiJHtRzzpjtK4fDnZxISvCcNuQ4wnORWfEpKphYFSDqmoK40OMjv 4r5T1WH/D8hQT/9EBk8fK1ZY4MZGS5OQTOTyWk9L0lhhlt27JOsIqzWyXDHFXMSNbQHTdc eq/q8wagD5JsqB/I0tAd+ZlDnD5o+mWxNte54fphOLV7BjgpB0HoZe54maQt6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758743786; a=rsa-sha256; cv=none; b=Ak3LwE3++jVyqTShsyEeI2DOx50Zh1n1yB1ziDP4ZzpEApO/29TKUCjnNxFBDRevvXsgZ+ GKffSgQjvEDWdabY78qpbQjtcxwYVp4Ez1HHPBo7+v9JkcIyAPCLHxU2qvgMDww9aluKNa 3AYKvjyXxLmfvitVSlMcQJXVGEj42lNVI91PQFgZ+1IJxVu+OuTMGu1yfL+4rmgLIL81WF CfHoWrVpIxirhTILR87FnMhfQ7Ai6Ko4P/qHEbuVlYNGeBml5Uzq8imXp1vGwUZki/g8a0 E3HsphvAQaHEz1onD2BH5vOqaFJx45xoTnVYM3x6h9aqJpePZMy7FcgViLxu3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cX6zt33qbzmdJ; Wed, 24 Sep 2025 19:56:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58OJuQXS005477; Wed, 24 Sep 2025 19:56:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58OJuQZh005474; Wed, 24 Sep 2025 19:56:26 GMT (envelope-from git) Date: Wed, 24 Sep 2025 19:56:26 GMT Message-Id: <202509241956.58OJuQZh005474@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: d466cb731a23 - main - make packages: Fix edge case of no kernel List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d466cb731a2317ec91a89684e9d6a915fdfcc2ff Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d466cb731a2317ec91a89684e9d6a915fdfcc2ff commit d466cb731a2317ec91a89684e9d6a915fdfcc2ff Author: Warner Losh AuthorDate: 2025-09-24 18:41:29 +0000 Commit: Warner Losh CommitDate: 2025-09-24 19:54:51 +0000 make packages: Fix edge case of no kernel When NO_INSTALLKERNEL and NO_INSTALLEXTRAKERNELS are set, or when BUILDKERNELS is empty, we can fail to define the create-kernel-packages make target, which we call unconditionally. So if do not have a kernel staging dir, go ahead and provide an empty create-kernel-packages so that when it's used elsewhere, the build succeeds. This lets me build a tree and package it when I don't have a kernel, for jails and other similar environments. There's no change if any kernels are built, since that will provide the necessary make target that does useful things for that case. Sponsored by: Netflix --- Makefile.inc1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index e98b5f233b51..92570d1d2fb9 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2314,6 +2314,9 @@ create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap -r ${KSTAGEDIR}/${DISTDIR} \ -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR} . endfor +.else +create-kernel-packages: .PHONY + .endif .if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes" . for _kernel in ${BUILDKERNELS:[2..-1]}