[OpenWrt-Devel] [PATCH] kernel: add option to root .config for /proc/config.gz
Hauke Mehrtens
hauke at hauke-m.de
Sat Nov 24 12:55:49 EST 2018
On 11/5/18 12:17 AM, Daniel Santos wrote:
> 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 <daniel.santos at pobox.com>
> ---
> 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
"default n" is not needed this is already the default setting.
> +
> +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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20181124/f1ecba1e/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list