From 9aaf7d17bbb8140ad9091d2435bdffa0d241fb56 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 14 Dec 2012 12:42:28 -0700 Subject: Fix broken scan-build Adding support for the multiple architectures broke the scan-build option. The new CC setting needed to be wrapped and not run again when doing the scan-build second pass. Change-Id: Ieb418f51d44803308040926a4154fb5fdc3ba67f Signed-off-by: Martin Roth Reviewed-on: http://review.coreboot.org/2031 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Stefan Reinauer --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3c537a51c1..527fbcc96a 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,9 @@ ARCH-y := $(ARCHDIR-y) ARCH-$(CONFIG_ARCH_ARMV7) := armv7 ARCH-$(CONFIG_ARCH_X86) := i386 +ifneq ($(INNER_SCANBUILD),y) CC := $(CC_$(ARCH-y)) +endif AS := $(AS_$(ARCH-y)) LD := $(LD_$(ARCH-y)) NM := $(NM_$(ARCH-y)) -- cgit v1.2.3