From e3b50a6bf8327a4891286753ae8a1b2fcd29f567 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de>
Date: Wed, 14 Nov 2018 13:01:09 +0100
Subject: [PATCH] makefiles/scan-build: Provide a per board scan-build output

Update the SCANBUILD_OUTPUTDIR to be per board.
Also remove un-necessary export and 'CURDIR'.
---
 makefiles/scan-build.inc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makefiles/scan-build.inc.mk b/makefiles/scan-build.inc.mk
index 9ac3ca917a..d95604fdfc 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), \
-- 
GitLab