[U-Boot-Users] [PATCH] Cleanup cpu/arm920t
llandre
r&d2 at dave-tech.it
Thu Aug 12 09:44:02 CEST 2004
> > I use as an example the two files cpu/arm920t/interrupts.c and
> > cpu/arm920t/ep93xx/interrupts.c.
> > In this case make produces the following error (both with "ar cqv" and "ar
> > crv"):
>
>Don't try to put different object files with the same file name into
>the same archive file, then. Use per-directory archives, for example.
Ok. arm/cpu/arm920t/ep93xx/Makefile looks like this:
##############################################################
include $(TOPDIR)/config.mk
LIB = libep93xx.a
OBJS = eth.o interrupts.o \
serial.o speed.o
all: .depend $(LIB)
$(LIB): $(OBJS)
$(AR) crv $@ $(OBJS)
.depend: Makefile $(OBJS:.o=.c)
$(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
sinclude .depend
##############################################################
and I changed main Makefile like this:
##############################################################
...
ifeq ($(CPU),mpc85xx)
OBJS += cpu/$(CPU)/resetvec.o
endif
LIBS = lib_generic/libgeneric.a
LIBS += board/$(BOARDDIR)/lib$(BOARD).a
LIBS += cpu/$(CPU)/lib$(CPU).a
ifeq ($(CPU),arm920t)
LIBS += cpu/$(CPU)/ep93xx/libep93xx.a
endif
LIBS += lib_$(ARCH)/lib$(ARCH).a
LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a \
fs/reiserfs/libreiserfs.a
...
##############################################################
llandre
DAVE Electronics System House - R&D Department
web: http://www.dave-tech.it
email: r&d2 at dave-tech.it
More information about the U-Boot
mailing list