From 7433117d03f864ed9e5effabe6ff11d811ba15c3 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Mon, 19 Jul 2021 16:32:40 +0800 Subject: [PATCH] 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 kirin config so that it never complains about our kernel configuration. Signed-off-by: Cyber Knight --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 94675b48a771..875f702d694f 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -119,7 +119,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/mojito_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;")