diff options
author | Nico Huber <nico.h@gmx.de> | 2016-08-01 22:42:50 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-08-03 09:40:36 +0200 |
commit | f641a27b634f736553efe81a1aa7169e0dc0861b (patch) | |
tree | e3baad5422e5cf2f10f89f8dbe4d1124a9ee3d39 | |
parent | 21a5bff77b0b365187afeec793cf6d4233e709be (diff) | |
download | coreboot-f641a27b634f736553efe81a1aa7169e0dc0861b.tar.xz |
Makefile.inc: Strip output of `wc`
Apparently BSD's wc indents its output.
Change-Id: I77f50a4b7d6012782f1c1b42ba20a64721c186c8
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/16013
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r-- | Makefile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index 7c471ddf1a..b3d429a47b 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -129,7 +129,7 @@ int-lt=$(if $(filter 1,$(words $1)),$(strip $1),$(shell expr $(call _toint,$(wor int-gt=$(if $(filter 1,$(words $1)),$(strip $1),$(shell expr $(call _toint,$(word 1,$1)) \> $(call _toint,$(word 2,$1)))) int-eq=$(if $(filter 1,$(words $1)),$(strip $1),$(shell expr $(call _toint,$(word 1,$1)) = $(call _toint,$(word 2,$1)))) int-align=$(shell A=$(call _toint,$1) B=$(call _toint,$2); expr $$A + \( \( $$B - \( $$A % $$B \) \) % $$B \) ) -file-size=$(shell cat $1 | wc -c) +file-size=$(strip $(shell cat $1 | wc -c)) tolower=$(shell echo '$1' | tr '[:upper:]' '[:lower:]') toupper=$(shell echo '$1' | tr '[:lower:]' '[:upper:]') ws_to_under=$(shell echo '$1' | tr ' \t' '_') |