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 <sultan@kerneltoast.com>
Signed-off-by: BlackMesa123 <giangrecosalvo9@gmail.com>
urubino
Sultan Alsawaf 1 year ago committed by Ruchit
parent ea71bf6cd8
commit 3474ba7b0b
  1. 6729
      arch/arm64/configs/vendor/lineage-a52q_defconfig
  2. 2
      kernel/Makefile

File diff suppressed because it is too large Load Diff

@ -120,7 +120,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/vendor/lineage-a52q_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;")

Loading…
Cancel
Save