Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: check the presence of include/generated/rustc_cfg

Since commit 2f7ab1267dc9 ("Kbuild: add Rust support"), Kconfig
generates include/generated/rustc_cfg, but its presence is not checked
in the top-level Makefile. It should be checked similarly to the C
header counterpart, include/generated/autoconf.h.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>

+3 -2
+3 -2
Makefile
··· 783 783 # and include/config/auto.conf but do not care if they are up-to-date. 784 784 # Use auto.conf to show the error message 785 785 786 - checked-configs := include/generated/autoconf.h include/config/auto.conf 786 + checked-configs := include/generated/autoconf.h include/generated/rustc_cfg include/config/auto.conf 787 787 missing-configs := $(filter-out $(wildcard $(checked-configs)), $(checked-configs)) 788 788 789 789 ifdef missing-configs ··· 1201 1201 1202 1202 archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \ 1203 1203 asm-generic $(version_h) include/generated/utsrelease.h \ 1204 - include/generated/compile.h include/generated/autoconf.h remove-stale-files 1204 + include/generated/compile.h include/generated/autoconf.h \ 1205 + include/generated/rustc_cfg remove-stale-files 1205 1206 1206 1207 prepare0: archprepare 1207 1208 $(Q)$(MAKE) $(build)=scripts/mod