diff options
-rw-r--r-- | backport/Makefile.build | 7 | ||||
-rwxr-xr-x | backport/scripts/make | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/backport/Makefile.build b/backport/Makefile.build index a848b37e..9c272b2d 100644 --- a/backport/Makefile.build +++ b/backport/Makefile.build @@ -1,4 +1,11 @@ +# detect if make supports --eval +_EVAL := $(shell make --eval "test:" -f /dev/null test >/dev/null 2>&1 && echo YES || echo NO) +ifeq ($(_EVAL),YES) +MAKE=$(BACKPORT_DIR)/scripts/make +else -include .config +endif + export .PHONY: modules diff --git a/backport/scripts/make b/backport/scripts/make new file mode 100755 index 00000000..cff7d003 --- /dev/null +++ b/backport/scripts/make @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +exec make --eval '-include $(BACKPORT_DIR)/.config' "$@" |