[coreboot-gerrit] New patch to review for coreboot: Makefile.inc: Strip output of `wc`
Nico Huber (nico.h@gmx.de)
gerrit at coreboot.org
Mon Aug 1 22:48:42 CEST 2016
Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16013
-gerrit
commit a50aec5dd645ef66b2a845ad05da38ccd713ac96
Author: Nico Huber <nico.h at gmx.de>
Date: Mon Aug 1 22:42:50 2016 +0200
Makefile.inc: Strip output of `wc`
Apparently BSD's wc indents its output.
Change-Id: I77f50a4b7d6012782f1c1b42ba20a64721c186c8
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.inc b/Makefile.inc
index 7c471dd..b3d429a 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' '_')
More information about the coreboot-gerrit
mailing list