From patchwork Sun Nov 4 23:17:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Santos X-Patchwork-Id: 992807 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=pobox.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nAtYXYyf"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.b="g3EYpq3n"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42pBZl3yjPzB6PB for ; Mon, 5 Nov 2018 10:18:51 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ui6vZJVWuP6rxd0/ncA85I1vUz4NByDHWjTaAkP4vRs=; b=nAtYXYyfR/ZPoU STrXJjkpOU6XZx1vboJSldZUnV0fDOAxpUVSOXbrIzQLya67X+OiWnyBmhKMHW7EZRtzymeeenDcK OmVhKi6A8gc+R/a/DGFRxBULPOCztxwiJcjL/LSGYpz8mwfSjDwKPaYmxN2LM0/sOEn+umbXGC0ms 8qGuqNjqNhdPTzqrizFQi2Dm8GzeuX5rLX3U22Lqru87ijOxM74teENIwjwbqr1JPWH5mVwv/ZKpJ 14h1Qe0iFjukxpMohy2TSr63k10OkYzti52FYB4ARG4brdW9WnLqwzsTJLmpn3HtyhPe4bul6ZHBN L0vM3p3g6kp323NbLuXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJRfH-0005mp-Cb; Sun, 04 Nov 2018 23:18:43 +0000 Received: from pb-smtp2.pobox.com ([64.147.108.71]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJRfE-0005mA-7u for openwrt-devel@lists.openwrt.org; Sun, 04 Nov 2018 23:18:41 +0000 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id D160210D5C0; Sun, 4 Nov 2018 18:18:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id; s=sasl; bh=uDAW4rGczVQ76bvLd5ZgnsgtFA4 =; b=g3EYpq3nYrJh0YSJCN+YA7qdXkV6ED/ndRwekwrgqBiF7DzKWBJkXmOaOX7 U+FluzdExtG19BiRRu96/XgmQy+ByYZvTpmVSr0UYBr+VTBlgdok579x5bvGK4TP zWPhdTrX4xyKRikKaBhWw4aFqZ/BMf982XH+JIL6I1uttZNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:date:message-id; q=dns; s=sasl; b=GZR9cb2w9lAPXVm/jTJOC 2r5vjvoKwO+YZB7Q4K3AgV9accKUryWuWHsdvA2CUBLFZcaOP6RfzJkma1myVHnw CouVooEuw/VoCv8HbFCtrX8CXcd16nG9oJBVFvKtlycBLdvXdWVifDcsD0la5C15 M+PF+Ac9rN75yQLuDajrDk= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id CB17910D5BF; Sun, 4 Nov 2018 18:18:24 -0500 (EST) Received: from love.attlocal.net (unknown [76.215.41.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 2BD8110D5BE; Sun, 4 Nov 2018 18:18:24 -0500 (EST) From: Daniel Santos To: openwrt-devel@lists.openwrt.org Date: Sun, 4 Nov 2018 17:17:08 -0600 Message-Id: <20181104231708.26222-1-daniel.santos@pobox.com> X-Mailer: git-send-email 2.16.4 X-Pobox-Relay-ID: ED6AAD8E-E087-11E8-808B-BFB3E64BB12D-06139138!pb-smtp2.pobox.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181104_151840_381748_E4020E67 X-CRM114-Status: GOOD ( 11.29 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [64.147.108.71 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain Subject: [OpenWrt-Devel] [PATCH] kernel: add option to root .config for /proc/config.gz X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Exports CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC to the kernel .config based upon menu choices under Global build settings --> Kernel build options. For simplicity, /proc/config.gz support is assumed, but if kernel_menuconfig has disabled CONFIG_PROC_FS it will be pruned in oldconfig. Signed-off-by: Daniel Santos --- config/Config-kernel.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index f38cc792dd..b03eb929c9 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -20,6 +20,24 @@ config KERNEL_BUILD_DOMAIN returned by 'uname -a' on running systems. If not set, uses system hostname at build time. +config KERNEL_IKCONFIG_PROC + bool + default n + +config KERNEL_IKCONFIG + bool "Kernel .config support" + select KERNEL_IKCONFIG_PROC + default n + help + This option enables the complete Linux kernel ".config" file + contents to be saved in the kernel. It provides documentation + of which kernel options are used in a running kernel or in an + on-disk kernel. This information can be extracted from the kernel + image file with the script scripts/extract-ikconfig and used as + input to rebuild the current kernel or to build another kernel. + Unless PROC_FS is disabled, it will also be exported via + /proc/config.gz. + config KERNEL_PRINTK bool "Enable support for printk" default y