aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-07-14 15:44:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-07-14 15:46:35 +0200
commitb123921a92a957f08abb186e041aa38aa9328f3e (patch)
tree11be2f4939bb1da2bcf383592f330334c52ce942 /include
parent36fa1bbf6f510e57098edab3932015dc747bbd49 (diff)
downloadupstream-b123921a92a957f08abb186e041aa38aa9328f3e.tar.gz
upstream-b123921a92a957f08abb186e041aa38aa9328f3e.tar.bz2
upstream-b123921a92a957f08abb186e041aa38aa9328f3e.zip
include/prereq-build.mk: explicitly check for -f flag when using busybox time
On Debian, busybox does have a time applet, but it does not support the -f flag. Catch this in prereq check to give users to proper error message. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'include')
-rw-r--r--include/prereq-build.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 72875aef4e..edd63e9ee6 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -138,10 +138,10 @@ $(eval $(call SetupHostCommand,bzip2,Please install 'bzip2', \
$(eval $(call SetupHostCommand,wget,Please install GNU 'wget', \
wget --version | grep GNU))
-$(eval $(call SetupHostCommand,time,Please install GNU 'time' or BusyBox 'time', \
+$(eval $(call SetupHostCommand,time,Please install GNU 'time' or BusyBox 'time' that supports -f, \
gtime --version 2>&1 | grep GNU, \
time --version 2>&1 | grep GNU, \
- busybox time 2>&1 | grep BusyBox))
+ busybox time 2>&1 | grep -- '-f FMT'))
$(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
perl --version | grep "perl.*v5"))