🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel
Article #54

[PATCH v2 11/11] Documentation: Describe auditconfig build target

#54
From: Ahmed S. Darwish
Date: Thu, 03 Dec 2026 23:10
65 lines
4660 bytes
Document the auditconfig target, its POLICY and OVERLAY arguments, and the
diagnostics it reports.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
---
 Documentation/admin-guide/README.rst  | 29 +++++++++++++++++++++++++++
 Documentation/tools/kconfig-audit.rst |  3 +++
 2 files changed, 32 insertions(+)

diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst
index 77fec1de6dc8..6f78988d4005 100644
--- a/Documentation/admin-guide/README.rst
+++ b/Documentation/admin-guide/README.rst
@@ -256,6 +256,35 @@ Configuring the kernel
       should probably answer 'n' to the questions for "development",
       "experimental", or "debugging" features.
 
+Checking the kernel configuration
+---------------------------------
+
+The kconfig build system can validate the generated kernel ``.config``
+against a selected rules profile. Running ``make auditconfig`` prints
+usage information and the available profiles::
+
+  Usage: make POLICY=<profile> [OVERLAY=<overlay>] auditconfig
+  Available POLICY: preempt_rt
+
+For example, to validate the current configuration against the PREEMPT_RT
+profile, run::
+
+  make POLICY=preempt_rt auditconfig
+
+``auditconfig`` reports kconfig options whose values do not match the
+selected rules profile. Each diagnostic includes a severity, such as
+``FATAL`` or ``INFO``, plus the suggested configuration change.
+
+Apply the reported changes as needed and run ``make auditconfig`` again,
+against the same rules, until no relevant diagnostics remain.
+
+The ``OVERLAY=`` parameter specifies an overlay file whose rules overrides
+the built-in mainline profile selected by ``POLICY=``. It is intended for
+distributions kernel packaging scripts, CI systems, and board support
+packages.
+
+For more information, see Documentation/tools/kconfig-audit.rst
+
 Compiling the kernel
 --------------------
 
diff --git a/Documentation/tools/kconfig-audit.rst b/Documentation/tools/kconfig-audit.rst
index e83eb56e43ed..7c1280e7e352 100644
--- a/Documentation/tools/kconfig-audit.rst
+++ b/Documentation/tools/kconfig-audit.rst
@@ -37,6 +37,9 @@ Example invocation from within the kernel tree:
    ~/linux$ make defconfig
    ~/linux$ tools/kconfig-audit/audit.py check -c .config -p preempt_rt
 
+As described in Documentation/admin-guide/README.rst, the checker is also
+used by ``make auditconfig``.
+
 External dependencies
 =====================
 
-- 
2.56.0
Technical Details
Message-ID: <O6o65-fPfD-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O6o65-fPfD-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: "Ahmed S. Darwish" <darwi@linutronix.de>
Newsgroups: linux.debian.kernel,linux.kernel
Subject: [PATCH v2 11/11] Documentation: Describe auditconfig build target
Date: Fri, 04 Dec 2026 00:10:01 +0100
Message-ID: <O6o65-fPfD-13@gated-at.bofh.it>
References: <O6o65-fPfD-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-kernel-request@lists.debian.org  Thu Dec  3 23:08:14 2026
Old-Return-Path: <darwi@linutronix.de>
X-Amavis-Spam-Status: No, score=-4.4 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158722
List-ID: <debian-kernel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-kernel/>
List-Archive: https://lists.debian.org/msgid-search/20261203224916.118064-12-darwi@linutronix.de
Approved: robomod@news.nic.it
Lines: 65
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Frederic Weisbecker <frederic@kernel.org>,
	John Ogness <john.ogness@linutronix.de>,
	Derek Barbosa <debarbos@redhat.com>,
	Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>,
	Daan De Meyer <daan.j.demeyer@gmail.com>,
	Luca Boccassi <luca.boccassi@gmail.com>,
	linux-rt-devel@lists.linux.dev,
	debian-kernel@lists.debian.org,
	linux-kbuild@vger.kernel.org,
	linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Ahmed S. Darwish" <darwi@linutronix.de>
X-Original-Date: Thu,  3 Dec 2026 23:49:12 +0100
X-Original-Message-ID: <20261203224916.118064-12-darwi@linutronix.de>
X-Original-References: <20261203224916.118064-1-darwi@linutronix.de>