From e48e15bff425241ec65f5f892cfd1d2c17a19d67 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 1 Nov 2021 12:35:38 +0100 Subject: 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 --- target/nios2/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'target/nios2') diff --git a/target/nios2/Makefile b/target/nios2/Makefile index ca418392d..8f08701df 100644 --- a/target/nios2/Makefile +++ b/target/nios2/Makefile @@ -59,8 +59,7 @@ kernel-install: kernel-strip @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) dtb-install: - env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \ - 10m50_devboard.dtb $(MAKE_TRACE) + ${KERNEL_MAKE} 10m50_devboard.dtb $(MAKE_TRACE) for x in $(LINUX_DIR)/arch/nios2/boot/*.dtb; do \ [[ -e "$$x" ]] && cp $(LINUX_DIR)/arch/nios2/boot/*.dtb $(FW_DIR); \ break; \ -- cgit v1.2.3