fix compilation of hello.elf example payload.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5746 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
b3f8090f4e
commit
f7b98f5766
|
@ -28,10 +28,9 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
# Sample libpayload Makefile.
|
# Sample libpayload Makefile.
|
||||||
|
LIBPAYLOAD_DIR := ../install/libpayload
|
||||||
LIBPAYLOAD_DIR := ..
|
XCC := CC=$(CC) $(LIBPAYLOAD_DIR)/bin/lpgcc
|
||||||
CC := $(LIBPAYLOAD_DIR)/bin/lpgcc
|
XAS := AS=$(AS) $(LIBPAYLOAD_DIR)/bin/lpas
|
||||||
AS := $(LIBPAYLOAD_DIR)/bin/lpas
|
|
||||||
CFLAGS := -Wall -Werror -Os
|
CFLAGS := -Wall -Werror -Os
|
||||||
TARGET := hello
|
TARGET := hello
|
||||||
OBJS := $(TARGET).o
|
OBJS := $(TARGET).o
|
||||||
|
@ -39,13 +38,13 @@ OBJS := $(TARGET).o
|
||||||
all: $(TARGET).elf
|
all: $(TARGET).elf
|
||||||
|
|
||||||
$(TARGET).elf: $(OBJS)
|
$(TARGET).elf: $(OBJS)
|
||||||
$(CC) -o $@ $(OBJS)
|
$(XCC) -o $@ $(OBJS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(XCC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
%.S.o: %.S
|
%.S.o: %.S
|
||||||
$(AS) --32 -o $@ $<
|
$(XAS) --32 -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGET).elf *.o
|
rm -f $(TARGET).elf *.o
|
||||||
|
|
Loading…
Reference in New Issue