From patchwork Mon Mar 13 09:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 13172124 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 547BCC61DA4 for ; Mon, 13 Mar 2023 09:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbjCMJlS (ORCPT ); Mon, 13 Mar 2023 05:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjCMJlR (ORCPT ); Mon, 13 Mar 2023 05:41:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34CC10F8; Mon, 13 Mar 2023 02:41:16 -0700 (PDT) From: Bastian Germann DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1678700475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P3Jk+EOoFhwYe9xdjAgg91RJYHQFIoaxmLXnHZX9HZA=; b=c1mBpz5FIFkd/cQnvBg1o+1cKZJYcYyeOZL7TxNKZ2zYr+dNqQAbf0no5y/pr40aTULanW EPDPtGgQCnNn49laCZ2rZaq0NWkGvc5EuilG5GKXcxfvTwIPfAGicQv4bn27CjTn2jNcuJ GZ22Uk4ztAAau5TmY5HSyOpJtTm/Am/+u5UwVRPJgJInAciJvsPd4vuIGlcLvvzsoWuDMF 8eP+7xSOwiqjb5JprTinJUZBQKNv6v/uYwzIenl5Vxv2X8yGErtWqFS/lSdz1jmD3XYzJH iXMhScmQjFE9Rl7UitPhrDa9Qm1y+aAhO5/Wt1qExqwA/Dw2Ocyv10xJdLQ3Kw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678700475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P3Jk+EOoFhwYe9xdjAgg91RJYHQFIoaxmLXnHZX9HZA=; b=6WBfft0ZXVPJx7Aughh7jAT8h9FHVdPfrTczlXaaIfGdvQcSS8BfrwikF/R7J4vCQg8tem ymQB7k7cOC3mkrBA== To: Masahiro Yamada Cc: Bastian Germann , Nathan Chancellor , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/1] builddeb: introduce profile excluding the dbg pkg Date: Mon, 13 Mar 2023 10:41:06 +0100 Message-Id: <20230313094106.46770-2-bage@linutronix.de> In-Reply-To: <20230313094106.46770-1-bage@linutronix.de> References: <20230313094106.46770-1-bage@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Enabling CONFIG_DEBUG_INFO implies building the binary linux-image-*-dbg. As this increases package build time significantly, one might want to exclude it from being built. Add build profile pkg.$sourcename.nokerneldbg for that package so it can be excluded via e.g. `make DPKG_FLAGS=--build-profiles=pkg.linux-upstream.nokerneldbg deb-pkg` The name is the same that is used in Debian's linux package since version 5.17~rc4-1~exp1. Link: https://wiki.debian.org/BuildProfileSpec Link: https://salsa.debian.org/kernel-team/linux/-/commit/140798ec2789 Signed-off-by: Bastian Germann --- scripts/package/builddeb | 4 +++- scripts/package/mkdebian | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index ff5e7d8e380b..d5320135e588 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -128,7 +128,9 @@ parisc|mips|powerpc) installed_image_path="boot/vmlinuz-$version" esac -BUILD_DEBUG=$(if_enabled_echo CONFIG_DEBUG_INFO Yes) +if [ "$DEB_BUILD_PROFILES" = "*nokerneldbg*" ]; then + BUILD_DEBUG=$(if_enabled_echo CONFIG_DEBUG_INFO Yes) +fi # Setup the directory structure rm -rf "$tmpdir" "$dbg_dir" debian/files diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index f74380036bb5..8a7969926e53 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -227,6 +227,7 @@ if is_enabled CONFIG_DEBUG_INFO; then cat <> debian/control Package: linux-image-$version-dbg +Build-Profiles: Section: debug Architecture: $debarch Description: Linux kernel debugging symbols for $version