kernel: Use the stock config for /proc/config.gz

Userspace reads /proc/config.gz and spits out an error message after boot
finishes when it doesn't like the kernel's configuration. In order to
preserve our freedom to customize the kernel however we'd like, show
userspace the stock config so that it never complains about our
kernel configuration.

Signed-off-by: Sultan Alsawaf <sultanxda@gmail.com>
This commit is contained in:
Sultan Alsawaf 2020-09-28 09:59:00 +02:00 committed by spakkkk
parent eacac4427d
commit 9e33a6782c
2 changed files with 6011 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -128,7 +128,7 @@ obj-$(CONFIG_RSEQ) += rseq.o
$(obj)/configs.o: $(obj)/config_data.h
targets += config_data.gz
$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
$(obj)/config_data.gz: arch/arm64/configs/lito-perf_defconfig FORCE
$(call if_changed,gzip)
filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;")