make an empty board.a
this fixes errors when trying to build board.a when COBJS is empty.
This commit is contained in:
parent
1d1317a136
commit
017172577c
2 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,9 @@ $(ISR): $(ISR:.o=.c)
|
|||
$(CC) $(CFLAGS) $(ARM_FLAGS) -MMD $< -c -o $@
|
||||
@$(FINALIZE_DEPENDENCY)
|
||||
|
||||
$(OBJDIR)/board.a: $(OBJDIR)/board.a($(OBJDIR)/$(COBJS))
|
||||
empty-board-a:
|
||||
$(AR) $(ARFLAGS) $(OBJDIR)/board.a
|
||||
$(OBJDIR)/board.a: empty-board-a $(filter $(OBJDIR)/%.o, $(OBJDIR)/board.a($(OBJDIR)/$(COBJS)))
|
||||
$(MC1322X)/src/src.a: $(MC1322X)/src/src.a($(SRCOBJS))
|
||||
|
||||
%_$(BOARD).elf: $(OBJDIR)/%.o $(START) $(ISR) $(SRCOBJS) $(LINKERSCRIPT) $(LIBMC1322X)/libmc1322x.a $(OBJDIR)/board.a $(MC1322X)/src/src.a
|
||||
|
|
|
@ -24,6 +24,7 @@ DBGFLAGS= -g -DDEBUG
|
|||
OPTFLAGS= -Os #-fomit-frame-pointer
|
||||
LDSCRIPT := boot.lds
|
||||
OBJCFLAGS += --gap-fill=0xff
|
||||
ARFLAGS = cru
|
||||
|
||||
gccincdir := $(shell $(CC) -print-file-name=include)
|
||||
|
||||
|
|
Loading…
Reference in a new issue