Skip to content

Commit 985d6cc

Browse files
committed
kbuild: check the presence of include/generated/rustc_cfg
Since commit 2f7ab12 ("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 <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Acked-by: Miguel Ojeda <[email protected]> Tested-by: Miguel Ojeda <[email protected]>
1 parent ec873a4 commit 985d6cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ else # !may-sync-config
783783
# and include/config/auto.conf but do not care if they are up-to-date.
784784
# Use auto.conf to show the error message
785785

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
787787
missing-configs := $(filter-out $(wildcard $(checked-configs)), $(checked-configs))
788788

789789
ifdef missing-configs
@@ -1201,7 +1201,8 @@ PHONY += prepare archprepare
12011201

12021202
archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \
12031203
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
12051206

12061207
prepare0: archprepare
12071208
$(Q)$(MAKE) $(build)=scripts/mod

0 commit comments

Comments
 (0)