From nobody Sun Oct 26 02:28:03 2025 X-Original-To: dev-commits-src-main@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 4cvLCR3rcTz6Dgr4; Sun, 26 Oct 2025 02:28:03 +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 4cvLCR3DtRz3HHh; Sun, 26 Oct 2025 02:28:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761445683; 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=G7nvge5h8tBlFwsv+uI3qe6w4/ruO6tyi7mksQEvVgs=; b=ab+ETpRO1+ZjbOdBAKJTdVa0J3gIP6PXXJfAUg7ubyJlJisy9IHAh4rDPn5FHAId8+2ITr DRehma1bAnzVLSn6j3ZCLSMEeKO7LSU/tclT3zTlqO0at9Du8GXa+ildz2pB5eIDQFnKKn BBOBYgz2sgLMD534+4llRY+TJ/qO3Np01aIjchXUqI+ZlOChA0bI1+10DBAsjxLt8IsNFW hgsah7c7w9Azksm0Xijou2PIpXrc/NQDIpy+3cjSHcbSSAy9gYsIv1AfCpj1YMLymu8kOC WEu+f7Vggn1rJVg3C9spplWbIcnpxDPlL04EHe5Em4xv14uq0697qU2dbRuBvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761445683; 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=G7nvge5h8tBlFwsv+uI3qe6w4/ruO6tyi7mksQEvVgs=; b=dDHR3iDuLf1J/LNNvKXzVXWusK8kPiWEt5rMZSswehZ+dBQYczZL3CIfQoxylkCPy2JXzj lvMdocURJjLmGcZ4RIECwEXveaCCnZucZhbyqCCWdpnqMRPSvNNgvKxFc5DzJTwkSjOr8c 2DWUBzdr29tFOTLHrJnbyFvts6ZgSQ2UO7VklOOIL0fOPctfeTwl02vwXEnF+L1BDN46pH /CMfQky1B5xzT0vFr8/na7C6ffLgqUjp2HRhpKwI9owLzTfOE255rr1nLy8R0Xa2VJBwr0 +0B159sqqWIVj/gA0WLiROwTlEVWxdqTnBLe9GJP3VMNHmr5+JUMBOv/fCv0FQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761445683; a=rsa-sha256; cv=none; b=llSU3w3SVeuUuGIMa2ZU9wTwsDVx6fw38WOzVbpTKKZR0eFP7bS89Bn/6Er+90QAQoCV2n Y4uW5pDnWDvS7RIzjgdBb92yIK2d6WgxbR0daW/MA2oUUubQrL7Jowz1jm3mRFvDJVeaVB dSbFzDmeBgKlAyRZ4uefRSugj+BT8LMOp+HlswFrGBiQWeFMTGCbDvDCRZijSw6rNJXFmj KNQMABFKa6hLOEXqb8gulTMQHF+Ga8BgZ4e8RvMZanWZ7atPrs51oIfqEhhLxYWolRiwT8 9FUv/BNOMXlS8VV2HEeL+Y73l4Z0PWHFRSb7O302x5XHX5llLQQzvQr3A4KJPw== 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 4cvLCR2cW5z1CMK; Sun, 26 Oct 2025 02:28:03 +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 59Q2S3dn068967; Sun, 26 Oct 2025 02:28:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59Q2S3QX068964; Sun, 26 Oct 2025 02:28:03 GMT (envelope-from git) Date: Sun, 26 Oct 2025 02:28:03 GMT Message-Id: <202510260228.59Q2S3QX068964@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Lexi Winter Subject: git: 842942be28b2 - main - packages: Remove the /boot hack from mtree-to-plist.awk List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ivy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 842942be28b21354e3f547e39fc75bf18ee5b6f7 Auto-Submitted: auto-generated The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=842942be28b21354e3f547e39fc75bf18ee5b6f7 commit 842942be28b21354e3f547e39fc75bf18ee5b6f7 Author: Lexi Winter AuthorDate: 2025-10-25 17:18:46 +0000 Commit: Lexi Winter CommitDate: 2025-10-26 02:22:47 +0000 packages: Remove the /boot hack from mtree-to-plist.awk Currently, files in /boot (other than /boot/kernel) are assigned to the bootloader package using a filename match in mtree-to-plist.awk. This causes some problems, most notably that debug info for userboot ends up in the utilities-dbg package instead of bootloader-dbg. Remove the path handling from mtree-to-plist and instead set PACKAGE in the appropriate Makefiles to put these in the correct package. While here, move userboot*.so from bootloader-dev to bootloader. MFC after: 3 days Reviewed by: cperciva Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D53179 --- release/scripts/mtree-to-plist.awk | 6 ------ stand/Makefile.inc | 2 ++ stand/userboot/Makefile.inc | 4 ++++ sys/conf/dtb.mk | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/release/scripts/mtree-to-plist.awk b/release/scripts/mtree-to-plist.awk index a9f1e194389a..38c9963680ee 100644 --- a/release/scripts/mtree-to-plist.awk +++ b/release/scripts/mtree-to-plist.awk @@ -40,12 +40,6 @@ for (i in a) { if (a[i] ~ /^package=/) { pkgname=a[i] - if ($1 ~ /^\/boot\//) { - if (kernel != "" && $1 ~ /^\/boot\/dtb\//) - pkgname="dtb" - else if ($1 !~ /^\/boot\/firmware\//) - pkgname="bootloader" - } gsub(/package=/, "", pkgname) } else if (a[i] == "config") { type="config" diff --git a/stand/Makefile.inc b/stand/Makefile.inc index 5d55c4e4a16f..2866ebd20af3 100644 --- a/stand/Makefile.inc +++ b/stand/Makefile.inc @@ -1,5 +1,7 @@ SUBDIR_PARALLEL= yes +PACKAGE= bootloader + # Firmware may not be able to handle branch protection failures MK_BRANCH_PROTECTION= no diff --git a/stand/userboot/Makefile.inc b/stand/userboot/Makefile.inc index 01b5f23410c8..392fd59a115f 100644 --- a/stand/userboot/Makefile.inc +++ b/stand/userboot/Makefile.inc @@ -1 +1,5 @@ .include "../Makefile.inc" + +# userboot.so should be installed in the base bootloader package, +# not bootloader-dev. +NO_DEV_PACKAGE= diff --git a/sys/conf/dtb.mk b/sys/conf/dtb.mk index ec3df525d1e7..2050be7560a4 100644 --- a/sys/conf/dtb.mk +++ b/sys/conf/dtb.mk @@ -31,6 +31,8 @@ .include "dtb.build.mk" +PACKAGE?= dtb + .if !target(install) && !target(realinstall) all: ${DTB} ${DTBO} realinstall: _dtbinstall