From: Johannes Berg <johannes.berg@xxxxxxxxx> When building with /bin/sh -> bash, things are SUPER slow (at least for me), because bash takes a LOOONG time to look at the environment variables (and we typically have around 6k), adding ~300ms to each bash invocation for me. The reason we export them is that we need them in all of the sub- makes, and those only read auto.conf, which we can't change. Work around this by overriding 'make' itself, and using --eval to read *our* .config file into each make that gets called. This way, the variables are present in all make invocations in the same way as they would be through the environment, but don't get passed to shell invocations. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- backport/Makefile.build | 3 ++- backport/scripts/make | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 backport/scripts/make diff --git a/backport/Makefile.build b/backport/Makefile.build index a848b37ed64b..7c479ace9f4a 100644 --- a/backport/Makefile.build +++ b/backport/Makefile.build @@ -1,6 +1,7 @@ --include .config export +export MAKE=$(BACKPORT_DIR)/scripts/make + .PHONY: modules modules: @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) modules diff --git a/backport/scripts/make b/backport/scripts/make new file mode 100755 index 000000000000..f5330a3730c8 --- /dev/null +++ b/backport/scripts/make @@ -0,0 +1,3 @@ +#!/bin/sh + +exec make --eval '-include $(BACKPORT_DIR)/.config' "$@" -- 2.23.0 -- To unsubscribe from this list: send the line "unsubscribe backports" in