Skip to content

Commit efbf972

Browse files
committed
kbuild: remove redundant patterns in filter/filter-out
The '%' in filter/filter-out matches to any number of any characters, including empty string. So, '%config' matches to 'config', and '%install' to 'install'. Drop the redundant patterns. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 1dbcf46 commit efbf972

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ no-dot-config-targets := $(clean-targets) \
265265
$(version_h) headers headers_% archheaders archscripts \
266266
%asm-generic kernelversion %src-pkg dt_binding_check \
267267
outputmakefile
268-
no-sync-config-targets := $(no-dot-config-targets) install %install \
269-
kernelrelease
268+
no-sync-config-targets := $(no-dot-config-targets) %install kernelrelease
270269
single-targets := %.a %.i %.ko %.lds %.ll %.lst %.mod %.o %.s %.symtypes %/
271270

272271
config-build :=
@@ -292,7 +291,7 @@ ifneq ($(KBUILD_EXTMOD),)
292291
endif
293292

294293
ifeq ($(KBUILD_EXTMOD),)
295-
ifneq ($(filter config %config,$(MAKECMDGOALS)),)
294+
ifneq ($(filter %config,$(MAKECMDGOALS)),)
296295
config-build := 1
297296
ifneq ($(words $(MAKECMDGOALS)),1)
298297
mixed-build := 1

0 commit comments

Comments
 (0)