diff --git a/Makefile b/Makefile
index 7607e20385a8dd51bf6731c0b0624ed795132822..eb02f3823ce6daf54e026fe689292c766777ae66 100644
--- a/Makefile
+++ b/Makefile
@@ -1545,6 +1545,7 @@ endif
 # *.ko are usually independent of vmlinux, but CONFIG_DEBUG_INFOBTF_MODULES
 # is an exception.
 ifdef CONFIG_DEBUG_INFO_BTF_MODULES
+KBUILD_BUILTIN := 1
 modules: vmlinux
 endif