summaryrefslogtreecommitdiff
path: root/payloads/libpayload/Makefile
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-20 17:19:20 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-20 17:19:20 +0000
commit97f546cf2d317496c18b49ce4b4b43889830b759 (patch)
tree6f3ebe2f2bc7699712dab014698b4db0798e4f47 /payloads/libpayload/Makefile
parent338150ed18fec783063550ca0ffacecfebb4caa7 (diff)
downloadcoreboot-97f546cf2d317496c18b49ce4b4b43889830b759.tar.xz
Allow easy libpayload compilation using xcompile.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5465 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/Makefile')
-rw-r--r--payloads/libpayload/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/payloads/libpayload/Makefile b/payloads/libpayload/Makefile
index 94a6f17201..8783f2118c 100644
--- a/payloads/libpayload/Makefile
+++ b/payloads/libpayload/Makefile
@@ -49,7 +49,10 @@ ifneq ($(V),1)
Q := @
endif
-CC = gcc
+$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile > .xcompile)))
+include .xcompile
+
+CC ?= gcc
HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS := -I$(srck) -I$(objk) -pipe