Skip to content

Commit 74d3320

Browse files
committed
kbuild: fix 'make modules' error when CONFIG_DEBUG_INFO_BTF_MODULES=y
When CONFIG_DEBUG_INFO_BTF_MODULES=y, running 'make modules' in the clean kernel tree will get the following error. $ grep CONFIG_DEBUG_INFO_BTF_MODULES .config CONFIG_DEBUG_INFO_BTF_MODULES=y $ make -s clean $ make modules [snip] AR vmlinux.a ar: ./built-in.a: No such file or directory make: *** [Makefile:1241: vmlinux.a] Error 1 'modules' depends on 'vmlinux', but builtin objects are not built. Define KBUILD_BUILTIN. Fixes: f73edc8 ("kbuild: unify two modpost invocations") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 8debed3 commit 74d3320

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,7 @@ endif
15451545
# *.ko are usually independent of vmlinux, but CONFIG_DEBUG_INFOBTF_MODULES
15461546
# is an exception.
15471547
ifdef CONFIG_DEBUG_INFO_BTF_MODULES
1548+
KBUILD_BUILTIN := 1
15481549
modules: vmlinux
15491550
endif
15501551

0 commit comments

Comments
 (0)