summaryrefslogtreecommitdiff
path: root/src/Kconfig
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-03-14 21:25:03 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-03-14 21:25:03 +0000
commit020f51fdc0c54c8dcb115de611d48946695b155d (patch)
tree31eaaef17f69842cccc00c2a60a37539cb0074b4 /src/Kconfig
parent8702ab5ab1ee3e9f4f4d6edd7cec85ed6029aac8 (diff)
downloadcoreboot-020f51fdc0c54c8dcb115de611d48946695b155d.tar.xz
Add scan-build support to the build system.
When configured in Kconfig, just running "make" calls scan-build as appropriate (however, it does not check for the presence of scan-build) The target directory for the scan-build report is configurable and defaults to the scan-build default of /tmp/scan-build-$date-$num abuild is adapted to properly run scanbuild when ran with the -sb option. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5208 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 1331f557e9..d361315540 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -46,6 +46,20 @@ config CBFS_PREFIX
Select the prefix to all files put into the image. It's "fallback"
by default, "normal" is a common alternative.
+config SCANBUILD_ENABLE
+ bool "build with scan-build for static analysis"
+ default n
+ help
+ Changes the build process to scan-build is used.
+ Requires scan-build in path.
+
+config SCANBUILD_REPORT_LOCATION
+ string "directory to put scan-build report in"
+ default ""
+ depends on SCANBUILD_ENABLE
+ help
+ Where the scan-build report should be stored
+
endmenu
source src/mainboard/Kconfig