summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-11-28 23:08:51 +0100
committerPatrick Georgi <pgeorgi@google.com>2014-11-30 12:20:11 +0100
commit02ac6c3572e2aedae256597133a1414c0e2e7f0c (patch)
tree61a08ac8a8d8db4a9bece74742c2198463cc00a7 /util
parentbd79c5eaf1f13f33c43c99657f24fa4c0330619a (diff)
downloadcoreboot-02ac6c3572e2aedae256597133a1414c0e2e7f0c.tar.xz
build system: only do the compiler test for gcc
There isn't a history of broken clang compilers yet so let's give it a chance. Change-Id: Iddb63700e3850116313c1ddee69111f936191055 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7607 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index ac516f72fb..a6b96c059a 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -506,7 +506,7 @@ while true ; do
;;
-L|--clang) shift
customizing="${customizing}, clang"
- configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n"
+ configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n# CONFIG_COMPILER_GCC is not set\n"
;;
-z|--clean) shift
customizing="${customizing}, clean"
@@ -563,17 +563,17 @@ build_all_targets()
{
# seed shared utils
TMPCFG=`mktemp`
- if [ "$enable_blobs" = "true" ]; then
- echo "CONFIG_USE_BLOBS=y" > $TMPCFG
- fi
+ printf "$configoptions" > $TMPCFG
$MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils allnoconfig
+ printf "$configoptions" >> $TMPCFG
+ $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils oldconfig 2>/dev/null |head > /dev/null
BUILDPREFIX=
if [ "$scanbuild" = "true" ]; then
scanbuild_out=$TARGET/sharedutils-scanbuild
rm -rf ${scanbuild_out}
BUILDPREFIX="scan-build -o ${scanbuild_out}tmp"
fi
- $BUILDPREFIX $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils `printf $configoptions` tools || exit 1
+ $BUILDPREFIX $MAKE -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils tools || exit 1
if [ "$scanbuild" = "true" ]; then
mv ${scanbuild_out}tmp/* ${scanbuild_out}
rmdir ${scanbuild_out}tmp