From nobody Mon Jan 29 18:25:12 2024 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 4TNxYP21W5z599cr; Mon, 29 Jan 2024 18:25:13 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNxYP1bnqz564R; Mon, 29 Jan 2024 18:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706552713; 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=Av+FlDHRr1yMlbMR+73orTqzXV3Van9n1Cq5pPP2cSM=; b=Hx9rvM7XTYm0KkyuC/QxBP1aOQjBouC8kCP2dt3n0g18oDoVD6bLi49Xl4EVH/qUh/Car9 KSdnB4RzbikHtWbp4E9g4UG+CkghESkclUEiz9pH97F0pjbCRJmO45ztzsOWuUXanlrpb9 SS1aQ2gC4s2S+zMhy4rMIDz24g9cP3v/z0CjGZRHSrIqxaW1ROmYn+xWJt2gaHhqPxRVIJ xJDyrRgvwcOKCA/CjHVRPP/6q6Fu4TCTy8MM92uCNw5QooFESY81jcbRzYHpCz6SuXPBjk OST4ysO6oKxJ1nj7HupG0/DmYMQM0GIAGVQFVwPYfJQVODRcW9l7aVJyS7d7nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706552713; 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=Av+FlDHRr1yMlbMR+73orTqzXV3Van9n1Cq5pPP2cSM=; b=fBRJl6fU6uZsJgrmONnGgnVNv7wkzhme8oeDsPDV7oqIbyYAomfYfzwyolKD2H6V3QCe1P 6dfvTDd0pB7a5QJdgA0yhYoICvq+Dm3N/WRlFayzMGvHgzvU39+vIfNIouaQYabHMvk4n4 oOGtJLD7XLgAJscQx0gZ5OMTmfwqEWDlqMNMzadr8qgFiXalPa4qU9eL+hz1seYfphcSIp pRKGJFS7ePwHXXrKSXY4O3sVDjF4xn+Tau7i7Nex1FrSm3yCpW3XPiPz4GgatghJgGtZ7r JAUUQVK3mLAmeuHOJ/eeHXANHpI8zSHsn9hgeOpapT7I5oqlQ0kozhOtgTg68A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706552713; a=rsa-sha256; cv=none; b=O1Mf1DyZHayGm7dwzRwRbTJ2KzXwuqNJJRiHUnXk7idftIEU5NGr56AsJG85mD5+fjc6+H xCQe3/dItlwktNqHG2ukBYqEVH0B5shQjAVRG2qWou3GTVd/RVjVzSDVUrENB5tn8tQnwj 2yjcA/HC8m7Pap178W1vyVC5UeMIVtDJzbSsvlQ/bCz8AQJFk+SAmCt50SAwhxGkXPrDe5 7mkvUbzLUx999Ojx2YNNRKG/BS/o4FyHVTpuQFwZ2sUt4siGkYPlG+l8bX34zknS9QiQWz +qWTbF9l5OxzyCgDCKAE+mD/VIXn8CtQxEm8s49MEesVd+EgOWtZyLd5jBkyTg== 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 4TNxYP0hq5z12mJ; Mon, 29 Jan 2024 18:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40TIPDhE090870; Mon, 29 Jan 2024 18:25:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40TIPCeX090867; Mon, 29 Jan 2024 18:25:12 GMT (envelope-from git) Date: Mon, 29 Jan 2024 18:25:12 GMT Message-Id: <202401291825.40TIPCeX090867@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: a5afd7920d50 - main - pkgbase: Create a FreeBSD-dtb package 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5afd7920d50ff23f91bdbabb1f0fd7ba028ba9e Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=a5afd7920d50ff23f91bdbabb1f0fd7ba028ba9e commit a5afd7920d50ff23f91bdbabb1f0fd7ba028ba9e Author: Emmanuel Vadot AuthorDate: 2024-01-27 12:20:49 +0000 Commit: Emmanuel Vadot CommitDate: 2024-01-29 18:24:25 +0000 pkgbase: Create a FreeBSD-dtb package Before that dtbs where included in each kernel packages which prevents us to install multiple kernels. Differential Revision: https://reviews.freebsd.org/D43632 Reviewed by: bapt Sponsored by: Beckhoff Automation GmbH & Co. KG --- Makefile.inc1 | 28 +++++++++++++++++++++++++++- release/packages/dtb.ucl | 16 ++++++++++++++++ release/scripts/mtree-to-plist.awk | 20 ++++++++++++++------ 3 files changed, 57 insertions(+), 7 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 1e86cda657dd..7a9917fd8a74 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2178,9 +2178,35 @@ _default_flavor= -default . if ${MK_DEBUG_FILES} != "no" _debug=-dbg . endif + +create-dtb-package: + @if [ -f ${KSTAGEDIR}/${DISTDIR}/dtb.plist ]; then \ + sed -e "s/%VERSION%/${PKG_VERSION}/" \ + -e "s/%PKGNAME%/dtb/" \ + -e "s/%COMMENT%/FreeBSD Devicetree Blobs/" \ + -e "s/%DESC%/FreeBSD Devicetree Blobs/" \ + -e "s/ %VCS_REVISION%/${VCS_REVISION}/" \ + -e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \ + -e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \ + -e "s|%PKG_WWW%|${PKG_WWW}|" \ + ${SRCDIR}/release/packages/dtb.ucl \ + > ${KSTAGEDIR}/${DISTDIR}/dtb.ucl ; \ + awk -F\" ' \ + /name/ { printf("===> Creating %s-", $$2); next } \ + /version/ {print $$2; next } ' \ + ${KSTAGEDIR}/${DISTDIR}/dtb.ucl ; \ + ${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \ + -o OSVERSION="${SRCRELDATE}" \ + create -f ${PKG_FORMAT} \ + -M ${KSTAGEDIR}/${DISTDIR}/dtb.ucl \ + -p ${KSTAGEDIR}/${DISTDIR}/dtb.plist \ + -r ${KSTAGEDIR}/${DISTDIR} \ + -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR} ; \ + fi + create-kernel-packages: .PHONY . for flavor in "" ${_debug} -create-kernel-packages: create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},} +create-kernel-packages: create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},} create-dtb-package create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap .PHONY @cd ${KSTAGEDIR}/${DISTDIR} ; \ ${METALOG_SORT_CMD} ${KSTAGEDIR}/kernel.meta | \ diff --git a/release/packages/dtb.ucl b/release/packages/dtb.ucl new file mode 100644 index 000000000000..e4717b9054a2 --- /dev/null +++ b/release/packages/dtb.ucl @@ -0,0 +1,16 @@ +# +# + +name = "%PKG_NAME_PREFIX%-%PKGNAME%" +origin = "base" +version = "%VERSION%" +comment = "%COMMENT%" +categories = [ base ] +maintainer = "%PKG_MAINTAINER%" +www = "%PKG_WWW%" +prefix = "/" +licenselogic = "single" +licenses = [ BSD2CLAUSE ] +desc = <