Andrew Wu (arw@dmp.com.tw) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3955
-gerrit
commit 87bff5ab1a9bdd4cee18e6c6cbf28e263fed0fb7 Author: Andrew Wu arw@dmp.com.tw Date: Mon Oct 7 16:27:01 2013 +0800
libpayload/sample: Use settings from .xcompile file to build.
It is for crossgcc.
Change-Id: Ia1d676adfea340b6b80858215459491c9338d614 Signed-off-by: Andrew Wu arw@dmp.com.tw --- payloads/libpayload/sample/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/payloads/libpayload/sample/Makefile b/payloads/libpayload/sample/Makefile index 1a32f3b..67697e8 100644 --- a/payloads/libpayload/sample/Makefile +++ b/payloads/libpayload/sample/Makefile @@ -28,9 +28,18 @@ ##
# Sample libpayload Makefile. +include ../.xcompile +include ../.config + +ARCH-$(CONFIG_ARCH_ARMV7) := armv7 +ARCH-$(CONFIG_ARCH_POWERPC) := powerpc +ARCH-$(CONFIG_ARCH_X86) := i386 + +CC := $(CC_$(ARCH-y)) +AS := $(AS_$(ARCH-y)) LIBPAYLOAD_DIR := ../install/libpayload -XCC := CC=$(CC) $(LIBPAYLOAD_DIR)/bin/lpgcc -XAS := AS=$(AS) $(LIBPAYLOAD_DIR)/bin/lpas +XCC := CC="$(CC)" $(LIBPAYLOAD_DIR)/bin/lpgcc +XAS := AS="$(AS)" $(LIBPAYLOAD_DIR)/bin/lpas CFLAGS := -Wall -Werror -Os TARGET := hello OBJS := $(TARGET).o