From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B30FC2BCF5; Sun, 23 Nov 2025 21:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763934445; cv=none; b=HE7d6gqcq7eJ3W+ObPdlsosJQS/x4hBM9q/jy+LkX+TwG4FsHFVIt1WEVOZpisslQ8/lV6rRWEgtrlpbGyj6XR7f2K7FmmlKKMWvQb8jIxamFaZ1k/JLd78w8db7z2yzCCf3rkSzlUfJ65cd0pcFLz+bhoBIiRF2TNjYMvtMkJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763934445; c=relaxed/simple; bh=BOOQmNh41X9ciFM/IZAe4F5I/dYGlUI669F0RSbHIHo=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=t5rgGwuUA2FuKP8Z/KXMf7T5TcbIzRryTPxBtr0rCnLhy9MR2QBcvsrZnQ/WHNbXzaXYL0mAwWOvqWYy8IbCRZIE73ux/iBokg2l2/lEnXMDmZBlkvilvgWORMrmBnZQSc7mr4MQ/Hzi1K/1xJdDA9JFeHk1WNFxXEgw+ldAws4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WCipwYgp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WCipwYgp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 344A6C113D0; Sun, 23 Nov 2025 21:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763934445; bh=BOOQmNh41X9ciFM/IZAe4F5I/dYGlUI669F0RSbHIHo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WCipwYgpNFSxh2zZDCv/9QolpR/oCC/teK+W8IqpfrDXLkmPhlNVPrDCTZDhvb/NY nqQsNf6QWGexzrFako/GV8sjU5Cb90azD1JLkH5SLw4GfBQTqv355R138yNF4Euq/l L9Sko8GJD5nlQnSiESO6RAFLHO7ugPrXNhN4cFhwP04mDeZv9zNw+gO2EOGO09chRS 3kD8H+Qa/kqBrozWYbaRtaxaNxB7x3eXyu4EzM0my6rRIfyTfj8q0PmuaV7tUzHghQ Io9jeRpc7CJBigGees9fTkqCsU5Mk9wGQP3+oBoxB3IVzlcdJzmyIAHepEu9SgK8O7 CXEYGk/ORvibg== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vNHvX-00000007gxo-11AG; Sun, 23 Nov 2025 21:47:23 +0000 Date: Sun, 23 Nov 2025 21:47:22 +0000 Message-ID: <87h5ukfml1.wl-maz@kernel.org> From: Marc Zyngier To: Nicolas Schier Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Nathan Chancellor Subject: Re: [PATCH] kbuild: deb-pkg: Allow packages to be excluded from bindeb-pkg In-Reply-To: References: <20251123183647.76559-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: nsc@kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, nathan@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sun, 23 Nov 2025 20:34:23 +0000, Nicolas Schier wrote: > > On Sun, Nov 23, 2025 at 06:36:47PM +0000, Marc Zyngier wrote: > > The bindeb-pkg target generates a number of individual packages: > > the kernel package itself, the debug package, the kernel and libc > > header packages. > > > > It is at times useful to not generate all the packages, such as > > the debug package, even if the kernel configuration has CONFIG_DEBUG. > > > > For this purpose, let the user provide a DEB_EXCLUDE_PKG environment > > variable that can contain exclusion patterns for some of the build > > artefacts. This saves precious cycles when repeatedly building packages > > for testing purposes, where not all packages are strictly necessary. > > > > The default behaviour, with no variable defined, is of course unchanged. > > > > Signed-off-by: Marc Zyngier > > --- > > thanks for your suggestion. Could you please check whether the usual > Debian build profiles are sufficient for your needs, e.g.: > > DEB_BUILD_PROFILES="pkg.linux-upstream.nokernelheaders pkg.linux-upstream.nokerneldbg" make bindeb-pkg > > I do like that we have the Debian build profiles [1] mechanism here, and > would rather extend it, if neccessary, instead of implementing a > different approach additionally. Ah, amazing! I had no idea this was even a thing, and 2ad7126c51908 ("kbuild: deb-pkg: add pkg.linux-upstream.nokerneldbg build profile") is exactly what I needed, Many thanks for pointing this out, my patch can therefore be safely ignored. Cheers, M. -- Jazz isn't dead. It just smells funny.