From f7b98f57669ffe8453fa00067b322f82961d7b82 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 28 Aug 2010 23:23:47 +0000 Subject: fix compilation of hello.elf example payload. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5746 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/sample/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'payloads') diff --git a/payloads/libpayload/sample/Makefile b/payloads/libpayload/sample/Makefile index 497f051999..1a32f3b0fb 100644 --- a/payloads/libpayload/sample/Makefile +++ b/payloads/libpayload/sample/Makefile @@ -28,10 +28,9 @@ ## # Sample libpayload Makefile. - -LIBPAYLOAD_DIR := .. -CC := $(LIBPAYLOAD_DIR)/bin/lpgcc -AS := $(LIBPAYLOAD_DIR)/bin/lpas +LIBPAYLOAD_DIR := ../install/libpayload +XCC := CC=$(CC) $(LIBPAYLOAD_DIR)/bin/lpgcc +XAS := AS=$(AS) $(LIBPAYLOAD_DIR)/bin/lpas CFLAGS := -Wall -Werror -Os TARGET := hello OBJS := $(TARGET).o @@ -39,13 +38,13 @@ OBJS := $(TARGET).o all: $(TARGET).elf $(TARGET).elf: $(OBJS) - $(CC) -o $@ $(OBJS) + $(XCC) -o $@ $(OBJS) %.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< + $(XCC) $(CFLAGS) -c -o $@ $< %.S.o: %.S - $(AS) --32 -o $@ $< + $(XAS) --32 -o $@ $< clean: rm -f $(TARGET).elf *.o -- cgit v1.2.3