diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-20 17:19:20 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-20 17:19:20 +0000 |
commit | 97f546cf2d317496c18b49ce4b4b43889830b759 (patch) | |
tree | 6f3ebe2f2bc7699712dab014698b4db0798e4f47 /payloads/libpayload/Makefile | |
parent | 338150ed18fec783063550ca0ffacecfebb4caa7 (diff) |
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/Makefile | 5 |
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 |