20090310-3-scanbuild:
authorPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 11 Mar 2009 15:43:02 +0000 (15:43 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 11 Mar 2009 15:43:02 +0000 (15:43 +0000)
commitd229677b6191868661676658d84d7325d8f69f23
treeb8d16f022f406bfc817229af8d63a927e23df41d
parent118c1005ed11cab83fcb5c3b0958b72535b7866b
20090310-3-scanbuild:
Add support for clang's scan-build utility to abuild. scan-build wraps
the compiler and runs its own compiler on the same sources to do some
static analysis on them. It adds an option "-sb" or "--scan-build" that
creates a coreboot-builds/$target-scanbuild directory for every $target,
containing the output of scan-build, which is a HTML documentation on
its results.
Be aware, that scanbuild significantly increases build time: A board
that takes 6-7 seconds normally requires 60 seconds with that option
enabled on my test system.
The patch also moves the stack-protector option down a bit, so it
applies to crosscompiled targets, too (which overwrote the compiler
settings before)

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@3996 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
util/abuild/abuild