Skip to content

Commit f566e1f

Browse files
committed
kbuild: make multiple directory targets work
Currently, the single-target build does not work when two or more sub-directories are given: $ make fs/ kernel/ lib/ CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool make[2]: Nothing to be done for 'kernel/'. make[2]: Nothing to be done for 'fs/'. make[2]: Nothing to be done for 'lib/'. Make it work properly. Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 089b7d8 commit f566e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ PHONY += descend $(build-dirs)
16791679
descend: $(build-dirs)
16801680
$(build-dirs): prepare
16811681
$(Q)$(MAKE) $(build)=$@ \
1682-
single-build=$(if $(filter-out $@/, $(single-no-ko)),1) \
1682+
single-build=$(if $(filter-out $@/, $(filter $@/%, $(single-no-ko))),1) \
16831683
need-builtin=1 need-modorder=1
16841684

16851685
clean-dirs := $(addprefix _clean_, $(clean-dirs))

0 commit comments

Comments
 (0)