mcu25: fix out of tree building

Out of tree building of the Netstal mcu25 board failed like
that:

Configuring for mcu25 board...
Assembler messages: Fatal error: can't create /work/wd/tmp-ppc/board/netstal/mcu25/../common/fixed_sdram.o: No such file or directory
Assembler messages: Fatal error: can't create /work/wd/tmp-ppc/board/netstal/mcu25/../common/nm_bsp.o: No such file or directory

Adapt (and simplify) the Makefile.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Niklaus Giger <niklaus.giger@netstal.com>
master
Wolfgang Denk 14 years ago
parent ec5c04cdb5
commit f503d52a9e
  1. 20
      board/netstal/mcu25/Makefile

@ -19,24 +19,24 @@
# #
include $(TOPDIR)/config.mk include $(TOPDIR)/config.mk
ifneq ($(OBJTREE),$(SRCTREE))
$(shell mkdir -p $(obj)../common)
endif
LIB = $(obj)lib$(BOARD).a LIB = $(obj)lib$(BOARD).a
# NOBJS : Netstal common objects COBJS = $(BOARD).o \
NOBJS = fixed_sdram.o nm_bsp.o ../common/fixed_sdram.o \
COBJS = $(BOARD).o ../common/nm_bsp.o
SOBJS =
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix ../common/,$(NOBJS:.o=.c)) SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS)) OBJS := $(addprefix $(obj),$(COBJS))
NOBJS := $(addprefix $(obj)../common/,$(NOBJS))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(OBJS) $(SOBJS) $(NOBJS) $(LIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) $(NOBJS) $(AR) $(ARFLAGS) $@ $^
clean: clean:
rm -f $(SOBJS) $(OBJS) rm -f $(OBJS)
distclean: clean distclean: clean
rm -f $(LIB) core *.bak $(obj).depend rm -f $(LIB) core *.bak $(obj).depend

Loading…
Cancel
Save