From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3F958778B0 for ; Wed, 21 Jul 2021 14:11:18 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 31EB514AAB for ; Wed, 21 Jul 2021 14:10:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 085BE14A94 for ; Wed, 21 Jul 2021 14:10:46 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id C2096423A7 for ; Wed, 21 Jul 2021 14:10:46 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pve-devel@lists.proxmox.com Date: Wed, 21 Jul 2021 14:10:40 +0200 Message-Id: <20210721121041.2921637-1-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.474 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [control.in] Subject: [pve-devel] [PATCH kernel 1/2] build: conditionalize -dbgsym package X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2021 12:11:18 -0000 via a new, namespaced build profile. Signed-off-by: Fabian Grünbichler --- test-built with and without build-profile enabled, no content difference in the other debs. debian/control.in | 1 + debian/rules | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/control.in b/debian/control.in index 7194d00..ee91978 100644 --- a/debian/control.in +++ b/debian/control.in @@ -71,6 +71,7 @@ Architecture: any Provides: linux-debug Section: devel Priority: optional +Build-Profiles: Description: The Proxmox PVE Kernel debug image This package provides the kernel debug image for version @KVNAME@. The debug kernel image contained in this package is NOT meant to boot from - it is diff --git a/debian/rules b/debian/rules index a500762..e338a01 100755 --- a/debian/rules +++ b/debian/rules @@ -138,7 +138,10 @@ binary: install # remove firmware rm -rf debian/${PVE_KERNEL_PKG}/lib/firmware - # debug package +ifeq ($(filter pkg.pve-kernel.debug,$(DEB_BUILD_PROFILES)),) + echo "'pkg.pve-kernel.debug' build profile disabled, skipping -dbgsym creation" +else + echo "'pkg.pve-kernel.debug' build profile enabled, creating -dbgsym contents" mkdir -p debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/lib/modules/${KVNAME} mkdir debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/boot install -m 644 ${KERNEL_SRC}/vmlinux debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/boot/vmlinux-${KVNAME} @@ -146,6 +149,7 @@ binary: install rm -f debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/lib/modules/${KVNAME}/source rm -f debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/lib/modules/${KVNAME}/build rm -f debian/${PVE_DEBUG_KERNEL_PKG}/usr/lib/debug/lib/modules/${KVNAME}/modules.* +endif # strip debug info find debian/${PVE_KERNEL_PKG}/lib/modules -name \*.ko -print | while read f ; do strip --strip-debug "$$f"; done -- 2.30.2