aboutsummaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorAndrew Wu <arw@dmp.com.tw>2013-09-03 20:39:48 +0800
committerJonathan A. Kollasch <jakllsch@kollasch.net>2013-10-17 01:59:50 +0200
commitcd9abf95e7fe3d67f02e5e0197efa2688db83d22 (patch)
treed4f497609b9668619de145f6e063282326953dc2 /util/xcompile
parentc2a8031a5eb8ed22ab6f906e44445af1c9487361 (diff)
arch/x86/Makefile.inc: Pass $(AS) and $(CPP) to SeaBIOS
SeaBIOS’ Makefile requires cpp (C Preprocessor) to build. Modify the xcompile script to search for cpp program path, and pass it to SeaBIOS’ `Makefile.inc`. Also pass the program path for as (GNU assembler). This is needed, so the crossgcc toolchain to build the SeaBIOS payload under Mac OSX. OSX ships a cpp program, but it works differently from GNU CPP, so we need to override it. Change-Id: If996ffbb76ec4bd16079b54b41f3fac07bfe25be Signed-off-by: Andrew Wu <arw@dmp.com.tw> Reviewed-on: http://review.coreboot.org/3896 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Diffstat (limited to 'util/xcompile')
-rw-r--r--util/xcompile/xcompile1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index de6084d8fa..5388889776 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -117,6 +117,7 @@ report_arch_toolchain() {
cat <<EOF
# elf${TWIDTH}-${TBFDARCH} toolchain (${GCCPREFIX}gcc)
CC_${TARCH}:=${GCCPREFIX}gcc ${CFLAGS}
+CPP_${TARCH}:=${GCCPREFIX}cpp
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}
NM_${TARCH}:=${GCCPREFIX}nm