From patchwork Mon Mar 15 00:11:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: coreboot and LLVM Date: Mon, 15 Mar 2010 00:11:03 -0000 From: Stefan Reinauer X-Patchwork-Id: 1049 Message-Id: <4B9D7B17.6040600@coresystems.de> To: coreboot mailing list See patch... This patch allows me to compile coreboot with LLVM/clang. To actually use LLVM/clang, I just hard coded it in xcompile for now: Acked-by: Ronald G. Minnich Index: util/xcompile/xcompile =================================================================== --- util/xcompile/xcompile (revision 5209) +++ util/xcompile/xcompile (working copy) @@ -87,7 +87,8 @@ cat << EOF # elf${TWIDTH}-${TARCH} toolchain AS:=${GCCPREFIX}as ${ASFLAGS} -CC:=${GCCPREFIX}gcc ${CFLAGS} +#CC:=${GCCPREFIX}gcc ${CFLAGS} +CC:=clang -m32 CPP:=${GCCPREFIX}cpp AR:=${GCCPREFIX}ar LD:=${GCCPREFIX}ld ${LDFLAGS}