Skip to content

Commit 75fa677

Browse files
dvlasenkshuahkh
authored andcommitted
selftests: use "$(MAKE)" instead of "make" for headers_install
If top make invocation uses -j4 or larger, this patch reduces "make headers_install" subtask run time from 30 to 7 seconds. CC: Shuah Khan <shuah@kernel.org> CC: Shuah Khan <skhan@linuxfoundation.org> CC: linux-kselftest@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 9123e3a commit 75fa677

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/lib.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ ARCH ?= $(SUBARCH)
4747
khdr:
4848
ifndef KSFT_KHDR_INSTALL_DONE
4949
ifeq (1,$(DEFAULT_INSTALL_HDR_PATH))
50-
make --no-builtin-rules ARCH=$(ARCH) -C $(top_srcdir) headers_install
50+
$(MAKE) --no-builtin-rules ARCH=$(ARCH) -C $(top_srcdir) headers_install
5151
else
52-
make --no-builtin-rules INSTALL_HDR_PATH=$$OUTPUT/usr \
52+
$(MAKE) --no-builtin-rules INSTALL_HDR_PATH=$$OUTPUT/usr \
5353
ARCH=$(ARCH) -C $(top_srcdir) headers_install
5454
endif
5555
endif

0 commit comments

Comments
 (0)