Skip to content

Commit

Permalink
kernel: Use the stock defconfig for /proc/config.gz
Browse files Browse the repository at this point in the history
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 <cyberknight755@gmail.com>
  • Loading branch information
kerneltoast authored and cyberknight777 committed Jul 19, 2021
1 parent ff99dd0 commit 7433117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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;")
Expand Down

0 comments on commit 7433117

Please sign in to comment.