kernel: Use the stock defconfig 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 salaa config so that it never complains about our
kernel configuration.

Change-Id: I39c8dd346818e428dc3eae32e034d9c51094bfa6
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
This commit is contained in:
Sultan Alsawaf
2021-11-20 03:29:10 +08:00
committed by Debayan Kar
parent ba084aaa11
commit d5b9952001
2 changed files with 5508 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -125,7 +125,7 @@ obj-$(CONFIG_HAS_IOMEM) += memremap.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/stock_defconfig FORCE
$(call if_changed,gzip)
filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;")