From 91cc4a27711758d52e92bc0b98a04ddd891195bd Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 3 Mar 2014 10:31:55 +0100 Subject: [PATCH 1/2] make/buildtest: print errors Display all stderr output but suppress warnings. implements https://github.com/RIOT-OS/RIOT/issues/835 --- Makefile.include | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index cc09992626..0953f22c61 100644 --- a/Makefile.include +++ b/Makefile.include @@ -167,18 +167,20 @@ buildtest: \ for BOARD in $${BOARDS}; do \ $${ECHO} -n "Building for $${BOARD} .. "; \ - env -i \ + LOG=$$(env -i \ HOME=$${HOME} \ PATH=$${PATH} \ BOARD=$${BOARD} \ RIOTBASE=$${RIOTBASE} \ RIOTBOARD=$${RIOTBOARD} \ RIOTCPU=$${RIOTCPU} \ - $(MAKE) -B clean all >/dev/null 2>&1 ; \ + CFLAGS="-w" \ + $(MAKE) -B clean all 2>&1 >/dev/null) ; \ if [ "$${?}" = "0" ]; then \ $${ECHO} "$${GREEN}success$${RESET}"; \ else \ $${ECHO} "$${RED}failed$${RESET}"; \ + echo "$${LOG}" | grep -v -E '^make(\[[[:digit:]]])?:'; \ BUILDTESTFAILED=1; \ fi; \ done; \ From f1dafdb062561888f0d6916ec1df0809a96ff5fb Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 17 Mar 2014 17:39:30 +0100 Subject: [PATCH 2/2] include warnings addresses https://github.com/RIOT-OS/RIOT/pull/883#issuecomment-37833467 --- Makefile.include | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 0953f22c61..8027d9e9e7 100644 --- a/Makefile.include +++ b/Makefile.include @@ -174,7 +174,6 @@ buildtest: RIOTBASE=$${RIOTBASE} \ RIOTBOARD=$${RIOTBOARD} \ RIOTCPU=$${RIOTCPU} \ - CFLAGS="-w" \ $(MAKE) -B clean all 2>&1 >/dev/null) ; \ if [ "$${?}" = "0" ]; then \ $${ECHO} "$${GREEN}success$${RESET}"; \