diff --git a/makefiles/buildtests.inc.mk b/makefiles/buildtests.inc.mk index 3d560590af..f980630289 100644 --- a/makefiles/buildtests.inc.mk +++ b/makefiles/buildtests.inc.mk @@ -20,7 +20,7 @@ buildtest: $(COLOR_ECHO) "$(COLOR_RED)failed!$(COLOR_RESET)" ; \ RESULT=false ; \ fi ; \ - $(MAKE) clean-intermediates >/dev/null 2>&1 || true; \ + BOARD=$${board} $(MAKE) clean-intermediates >/dev/null 2>&1 || true; \ fi; \ done ; \ $${RESULT}