Signed-off-by: Robert Millan <rmh@aybabtu.com>
Acked-by: Jordan Crouse <jordan@cosmicpenguin.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3749 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
39ebf2f068
commit
c1f404fc0e
|
@ -65,9 +65,9 @@ else
|
|||
|
||||
include $(src)/.config
|
||||
|
||||
all: prepare $(TARGET)
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(src)/.config $(OBJS)
|
||||
$(TARGET): $(src)/.config $(OBJS) prepare
|
||||
$(Q)printf " LD $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(XCC) -o $@ $(OBJS)
|
||||
$(Q)printf " STRIP $(subst $(shell pwd)/,,$(@))\n"
|
||||
|
|
|
@ -104,14 +104,14 @@ CFLAGS := -Wall -Werror $(STACKPROTECT) -nostdinc $(INCLUDES) -ffreestanding
|
|||
|
||||
all: lib
|
||||
|
||||
lib: prepare $(obj)/lib/libpayload.a copystuff
|
||||
lib: $(obj)/lib/libpayload.a copystuff
|
||||
|
||||
# Copy libpayload.a and head.o into $(src)/lib where lpgcc et al expect them.
|
||||
copystuff: $(obj)/$(ARCHDIR-y)/head.S.o $(obj)/lib/libpayload.a
|
||||
$(Q)cp $(obj)/$(ARCHDIR-y)/head.S.o $(src)/lib/$(ARCHDIR-y)/head.o
|
||||
$(Q)cp $(obj)/lib/libpayload.a $(src)/lib
|
||||
|
||||
$(obj)/lib/libpayload.a: $(OBJS)
|
||||
$(obj)/lib/libpayload.a: $(OBJS) prepare
|
||||
$(Q)printf " AR $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(AR) rc $@ $(OBJS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue