Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp389494lqb; Tue, 16 Apr 2024 21:38:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrpeVsuE0LuwNnx7hBAYmY1t0lcU4ie1vr1ZqjIs8Yb7rnUAhC6WDGhQ1TFQFM9lb5+TBa/XHJa5mVWNV3ocvb4OXg7Wca4miEAS9GzQ== X-Google-Smtp-Source: AGHT+IH8D6EU9mp5xlWvENvWgRs6NPJ8hd0AoTFp9mxo7AhisojIF2qXibRLJlGEiKMeapcSH8/w X-Received: by 2002:a50:9b1b:0:b0:56b:e13c:b5cc with SMTP id o27-20020a509b1b000000b0056be13cb5ccmr11533669edi.14.1713328718333; Tue, 16 Apr 2024 21:38:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713328718; cv=pass; d=google.com; s=arc-20160816; b=b+mxjPPmUuKa6d5h6nqzJlZauKrNaMc68rSxQAvA8n7ljTDN2mU+DdCLrY1uT483CG qfgLIk9kT4483IP66RNVvNEWUmZvFlDcXM4pm4zEiYIiJTD3bmW+CjxvIbUHiMxR1T2x Zqx9SyQEiGUnqxUGLW1EiJH1BK/aNlRQV3SU2at3a1tywSzZbnB9VYcrWPmj3iggAdFq y+VjUK7ZDaTVDBxG6hX9o4qTuPhfh2PlA3gMT9dA/2a0lTm36Az0c4z0l3J5fagMkfn/ 4U2uecrJhRqid0OF3SzCuiCgQprl773ulnf2+wgYchtaltQcDXHTnuwQG0/A+UW8w7Gv 8PQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=pp8p9HGXXcoQWS31K5FE4IE/aNjWd3ZLRLc51c+yVfg=; fh=lg4P8IGN47T5T2HNLVan4ONFD3+IvqN4cD/LbPzrias=; b=EOsO+jVI0JQgLt5hcheMYrApe3aOUT6/jof5dtlbSarO44CtmzR4iDj7Iy645B7Ix6 aYVqnoGbmrhMMA4NQrZl5bfQEFOuJoXH1y/v9rj707EbwwAfrnJRRyhJe7SQews3JXIT IfYcdeaQZFzRxUJ3HGGXlSfeF0qUeewVKY1VOZRa3z6p7Lv8dgYCfToq0BIv61JsxCMw jgw+jQSbxgvNUwLe2rEH9IfAnjKoey2l5J1duhZChDStAwPz41KLTuIyu9B9NeyUINb5 uoeMqrU2rzYBlOkeUiu9WPFTDS7uOpnwHdANTwMIVDc6WKYlTiY4tcO4O3moyM4OdmCX ZjxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@thefossguy.com header.s=protonmail header.b=TsUJBHv6; arc=pass (i=1 spf=pass spfdomain=thefossguy.com dkim=pass dkdomain=thefossguy.com dmarc=pass fromdomain=thefossguy.com); spf=pass (google.com: domain of linux-kernel+bounces-147929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thefossguy.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p4-20020a50cd84000000b005704b095861si805417edi.82.2024.04.16.21.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 21:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@thefossguy.com header.s=protonmail header.b=TsUJBHv6; arc=pass (i=1 spf=pass spfdomain=thefossguy.com dkim=pass dkdomain=thefossguy.com dmarc=pass fromdomain=thefossguy.com); spf=pass (google.com: domain of linux-kernel+bounces-147929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thefossguy.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 15AFF1F2354B for ; Wed, 17 Apr 2024 04:38:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE008481D3; Wed, 17 Apr 2024 04:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thefossguy.com header.i=@thefossguy.com header.b="TsUJBHv6" Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (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 30B5F44C60; Wed, 17 Apr 2024 04:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713328688; cv=none; b=pF34WATojBQ7qRczFDO89B/bzLn9fbh45FhVI5su+RQ+2geByD7W4mpwooiQEn4SPz1T9WAPyLLXaLCUbCa5Kvd7aEVX7C+Es9OA7TSvSWfQfnc1hJPTK632YUeRDYJYeQnoWKPt0qLOE6iQfz31yj5v7JA6nCkwQGqNpQiUHAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713328688; c=relaxed/simple; bh=zHKzExQqZWqAwP/VxhFaDjDzbwnfwfF4YYZd/OapYkw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WdjzeVIKHU5shOYKfxtLfV/SjisgLoMUOX3tfJuNkz+W8TqGOzMZCNjR3VF+D7Isy2nALzp/OOJkPlhBdR4HOQ2sSUdYHjmseuYNBfLDW4wT0VKdqNV3iHAdthZpUliSOOv+Ab7Lm40/KFlIJfhidrfAoliVRt96ibXT5plYTsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thefossguy.com; spf=pass smtp.mailfrom=thefossguy.com; dkim=pass (2048-bit key) header.d=thefossguy.com header.i=@thefossguy.com header.b=TsUJBHv6; arc=none smtp.client-ip=185.70.43.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thefossguy.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thefossguy.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thefossguy.com; s=protonmail; t=1713328680; x=1713587880; bh=pp8p9HGXXcoQWS31K5FE4IE/aNjWd3ZLRLc51c+yVfg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=TsUJBHv6UtUA1uWa0BoAuYeveWbqs9SvbmqunDKvIqL4yRFsKZ24bt0ybsToYzUip UIoAMC8/5ZC7fUNjY/UV/rHCljRY8/P2uSIH7pHvR3rYigwQpU96ipHwgiU4zv85mv E+ilSnfuFSP+wUpfwrwoMmk9EzDta+ps9oCB9D495gAdRL4o90r1+bxQ9kb7HCqON3 R31vONCuiV+Eg3wsL6ZuaOQ0+opEec/qws9gQIITXyQVmf+hnsXoapH3AObiW2jWiK w1Q0PdpSrJijH0lSQ9N57pQKtokigKU6GsrWsMMdC+C1AxnFeeAIkJtwU4Va4sX1dK WnwtY5pcmZP8g== Date: Wed, 17 Apr 2024 04:37:46 +0000 To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Jonathan Corbet From: Pratham Patel Cc: linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Pratham Patel , thefirst1322@gmail.com Subject: [PATCH 1/2] kbuild: allow toggling the `with_devel` RPM macro Message-ID: <20240417043654.60662-2-prathampatel@thefossguy.com> In-Reply-To: <20240417043654.60662-1-prathampatel@thefossguy.com> References: <20240417043654.60662-1-prathampatel@thefossguy.com> Feedback-ID: 104309535:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable As it stands, there is no way to toggle the `with_devel` RPM macro that is defined in the scripts/package/kernel.spec file, without manually building the RPM. Introduce the Kbuild variable KBUILD_RPM_WITH_DEVEL to toggle the `with_devel` macro when building the binary PRM package. The prior default of not building the `-devel` RPM package is preserved. Signed-off-by: Pratham Patel --- scripts/Makefile.package | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 38653f3e8108..715e068eae60 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -47,6 +47,8 @@ $(linux-tarballs): .tmp_HEAD FORCE # rpm-pkg srcrpm-pkg binrpm-pkg # ------------------------------------------------------------------------= --- =20 +export KBUILD_RPM_WITH_DEVEL ?=3D 0 + quiet_cmd_mkspec =3D GEN $@ cmd_mkspec =3D $(srctree)/scripts/package/mkspec $@ =20 @@ -71,7 +73,8 @@ rpm-pkg srcrpm-pkg binrpm-pkg: rpmbuild/SPECS/kernel.spec =09+$(strip rpmbuild -b$(build-type) rpmbuild/SPECS/kernel.spec \ =09--define=3D'_topdir $(abspath rpmbuild)' \ =09$(if $(filter a b, $(build-type)), \ -=09=09--target $(UTS_MACHINE)-linux --build-in-place --noprep --define=3D'= _smp_mflags %{nil}' \ +=09=09--target $(UTS_MACHINE)-linux --build-in-place --noprep \ +=09=09--define=3D'_smp_mflags %{nil}' --define=3D'with_devel $(KBUILD_RPM_= WITH_DEVEL)' \ =09=09$$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \ =09$(RPMOPTS)) =20 --=20 2.42.0