From 50a2dbeaa1e5fcdce78c28eb0541432ba8898993 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 12 Nov 2013 14:57:17 +0100 Subject: [PATCH 1/3] implement buildtest target the target runs make for every board in boards --- Makefile.include | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.include b/Makefile.include index 5d20fd8315..93a0c82302 100644 --- a/Makefile.include +++ b/Makefile.include @@ -99,3 +99,9 @@ doc: debug: $(DEBUGGER) $(DEBUGGER_FLAGS) + +buildtest: + @for BOARD in $$(sed -n -e 's/ifeq[^,]*,\([^)]*\))/\1/p' $(RIOTBASE)/boards/Makefile.base); do \ + echo -n "Building for $${BOARD} .. "; \ + env -i PATH=$${PATH} BOARD=$${BOARD} $(MAKE) -B clean all >/dev/null 2>&1 && echo "success" || echo "failed" ; \ + done From 561879502759f5d0eb754f902cb9db7f5b2008bc Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 13 Nov 2013 00:45:19 +0100 Subject: [PATCH 2/3] allow for differing RIOT* paths --- Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 93a0c82302..005dcd8e45 100644 --- a/Makefile.include +++ b/Makefile.include @@ -101,7 +101,7 @@ debug: $(DEBUGGER) $(DEBUGGER_FLAGS) buildtest: - @for BOARD in $$(sed -n -e 's/ifeq[^,]*,\([^)]*\))/\1/p' $(RIOTBASE)/boards/Makefile.base); do \ + @for BOARD in $$(sed -n -e 's/ifeq[^,]*,\([^)]*\))/\1/p' $(RIOTBOARD)/Makefile.base); do \ echo -n "Building for $${BOARD} .. "; \ - env -i PATH=$${PATH} BOARD=$${BOARD} $(MAKE) -B clean all >/dev/null 2>&1 && echo "success" || echo "failed" ; \ + env -i PATH=$${PATH} BOARD=$${BOARD} RIOTBASE=$${RIOTBASE} RIOTBOARD=$${RIOTBOARD} RIOTCPU=$${RIOTCPU} $(MAKE) -B clean all >/dev/null 2>&1 && echo "success" || echo "failed" ; \ done From 7351a74f5f98ac2ba3ef66475aa6ee6016552a33 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 13 Nov 2013 12:38:16 +0100 Subject: [PATCH 3/3] include HOME in env --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 005dcd8e45..5ad995f689 100644 --- a/Makefile.include +++ b/Makefile.include @@ -103,5 +103,5 @@ debug: buildtest: @for BOARD in $$(sed -n -e 's/ifeq[^,]*,\([^)]*\))/\1/p' $(RIOTBOARD)/Makefile.base); do \ echo -n "Building for $${BOARD} .. "; \ - env -i PATH=$${PATH} BOARD=$${BOARD} RIOTBASE=$${RIOTBASE} RIOTBOARD=$${RIOTBOARD} RIOTCPU=$${RIOTCPU} $(MAKE) -B clean all >/dev/null 2>&1 && echo "success" || echo "failed" ; \ + env -i HOME=$${HOME} PATH=$${PATH} BOARD=$${BOARD} RIOTBASE=$${RIOTBASE} RIOTBOARD=$${RIOTBOARD} RIOTCPU=$${RIOTCPU} $(MAKE) -B clean all >/dev/null 2>&1 && echo "success" || echo "failed" ; \ done