Skip to content

Commit

Permalink
selftests: use "$(MAKE)" instead of "make" for headers_install
Browse files Browse the repository at this point in the history
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 <[email protected]>
CC: Shuah Khan <[email protected]>
CC: [email protected]
CC: [email protected]
Signed-off-by: Denys Vlasenko <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
dvlasenk authored and shuahkh committed Aug 31, 2020
1 parent 9123e3a commit 75fa677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ ARCH ?= $(SUBARCH)
khdr:
ifndef KSFT_KHDR_INSTALL_DONE
ifeq (1,$(DEFAULT_INSTALL_HDR_PATH))
make --no-builtin-rules ARCH=$(ARCH) -C $(top_srcdir) headers_install
$(MAKE) --no-builtin-rules ARCH=$(ARCH) -C $(top_srcdir) headers_install
else
make --no-builtin-rules INSTALL_HDR_PATH=$$OUTPUT/usr \
$(MAKE) --no-builtin-rules INSTALL_HDR_PATH=$$OUTPUT/usr \
ARCH=$(ARCH) -C $(top_srcdir) headers_install
endif
endif
Expand Down

0 comments on commit 75fa677

Please sign in to comment.