diff --git a/makefiles/scan-build.inc.mk b/makefiles/scan-build.inc.mk
index 9ac3ca917a751b1dff6e1df4fccbfa47280ad666..d95604fdfc00577936921819b9c2d2abb6a9702d 100644
--- a/makefiles/scan-build.inc.mk
+++ b/makefiles/scan-build.inc.mk
@@ -41,7 +41,7 @@ SCANBUILD_ARGS ?= \
   -analyzer-config stable-report-filename=true \
   #
 
-export SCANBUILD_OUTPUTDIR = $(CURDIR)/scan-build/
+SCANBUILD_OUTPUTDIR = scan-build/$(BOARD)
 
 # Find all variables given on the command line and recreate the command.
 CMDVARS := $(strip $(foreach varname, $(SCANBUILD_ENV_VARS), \