Skip to content

Commit 9fa3afe

Browse files
committed
kbuild: avoid running is_rust_module.sh if !RUST
Suggested-by: Nathan Chancellor <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a274015 commit 9fa3afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.modfinal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ quiet_cmd_btf_ko = BTF [M] $@
4141
cmd_btf_ko = \
4242
if [ ! -f vmlinux ]; then \
4343
printf "Skipping BTF generation for %s due to unavailability of vmlinux\n" $@ 1>&2; \
44-
elif $(srctree)/scripts/is_rust_module.sh $@; then \
44+
elif [ -n "$(CONFIG_RUST)" ] && $(srctree)/scripts/is_rust_module.sh $@; then \
4545
printf "Skipping BTF generation for %s because it's a Rust module\n" $@ 1>&2; \
4646
else \
4747
LLVM_OBJCOPY="$(OBJCOPY)" $(PAHOLE) -J $(PAHOLE_FLAGS) --btf_base vmlinux $@; \

0 commit comments

Comments
 (0)