diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-01 12:35:38 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2021-11-01 15:16:19 +0100 |
commit | e48e15bff425241ec65f5f892cfd1d2c17a19d67 (patch) | |
tree | 0ce13510364096f891c7777204a2220404aa226f /mk/kernel-vars.mk | |
parent | 2b3bd34a82c6238a9612cf45b8b8730ca0c3c2be (diff) |
mk: Introduce KERNEL_MAKE variable
This combines the typical kernel make call idiom into a single variable
reference. A side-effect is that parallel make is enabled (via added
'-j' flag) in many cases, but that shouldn't cause harm.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'mk/kernel-vars.mk')
-rw-r--r-- | mk/kernel-vars.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk index 9befe59d3..a8f80f000 100644 --- a/mk/kernel-vars.mk +++ b/mk/kernel-vars.mk @@ -35,3 +35,6 @@ endif KERNEL_MAKE_ENV:= PATH="${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:$$PATH" LINUX_BUILD_DIR:= $(BUILD_DIR)/$(ADK_TARGET_OS)-$(ADK_TARGET_ARCH) + +# wrapper to simplify calling make in kernel tree +KERNEL_MAKE:= env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) -j${ADK_MAKE_JOBS} |