diff options
-rw-r--r-- | include/prereq-build.mk | 5 | ||||
-rw-r--r-- | include/subdir.mk | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk index bac5fdc84c..72875aef4e 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -138,9 +138,10 @@ $(eval $(call SetupHostCommand,bzip2,Please install 'bzip2', \ $(eval $(call SetupHostCommand,wget,Please install GNU 'wget', \ wget --version | grep GNU)) -$(eval $(call SetupHostCommand,gtime,Please install GNU 'time', \ +$(eval $(call SetupHostCommand,time,Please install GNU 'time' or BusyBox 'time', \ gtime --version 2>&1 | grep GNU, \ - time --version 2>&1 | grep GNU)) + time --version 2>&1 | grep GNU, \ + busybox time 2>&1 | grep BusyBox)) $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \ perl --version | grep "perl.*v5")) diff --git a/include/subdir.mk b/include/subdir.mk index ed4f7537d5..dde3e50b0b 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -43,7 +43,7 @@ log_make = \ $(if $(BUILD_LOG), \ set -o pipefail; \ mkdir -p $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4));) \ - gtime -f "time: $(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2)\#%U\#%S\#%e" -- \ + env time -f "time: $(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2)\#%U\#%S\#%e" -- \ $$(SUBMAKE) $(subdir_make_opts) $(if $(3),$(3)-)$(2) \ $(if $(BUILD_LOG),SILENT= 2>&1 | tee $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2).txt) |