[U-Boot-Users] [PATCH] Cleanup cpu/arm920t

Steven Scholz steven.scholz at imc-berlin.de
Wed Aug 11 12:45:40 CEST 2004


Hi llandre,

Did you have any success with your Cirrus Logic EDB93xx and 
cpu/arm920t/ep93xx???

My first attempt to do something like

$(LIB): $(OBJS)
	$(AR) crv $@ $(OBJS) imx/libimx.a

in cpu/arm920t/Makefile resulted in some error

> UNDEF_SYM=`arm_920TDI-objdump -x lib_generic/libgeneric.a 
> board/mx1ads/libmx1ads.a cpu/arm920t/libarm920t.a lib_arm/libarm.a 
> fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a 
> fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a 
> disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a 
> drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a 
> common/libcommon.a |sed  -n -e 
> 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
>         arm_920TDI-ld -Bstatic -T 
> /home/scholz/Projekte/HiResDisplay/u-boot.work/board/mx1ads/u-boot.lds 
> -Ttext 0x08400000  $UNDEF_SYM cpu/arm920t/start.o \
>                 --start-group lib_generic/libgeneric.a 
> board/mx1ads/libmx1ads.a cpu/arm920t/libarm920t.a lib_arm/libarm.a 
> fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a 
> fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a 
> disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a 
> drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a 
> common/libcommon.a --no-warn-mismatch -L 
> /opt/eldk/usr/lib/gcc-lib/arm-linux/2.95.4 -lgcc --end-group \
>                 -Map u-boot.map -o u-boot
> arm_920TDI-objdump: libimx.a: File format not recognized

My cpu/arm920t/imx/Makefile looks like

#########################################################################
include $(TOPDIR)/config.mk

LIB     = libimx.a

OBJS    = imx_generic.o imx_interrupts.o \
           imx_serial.o imx_speed.o

all:    .depend $(LIB)

$(LIB): $(OBJS)
         $(AR) crv $@ $(OBJS)

.depend:        Makefile $(OBJS:.o=.c)
                 $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@

sinclude .depend
#########################################################################

which is pretty much like cpu/arm920t/Makefile...

But I suspect that creating an archive with another archive like

	$(AR) crv $@ $(OBJS) imx/libimx.a

goes wrong...

"arm_920TDI-nm imx/libimx.a" works fine. But "arm_920TDI-nm libarm920t.a" 
brings
...
00000188 T do_undefined_instruction
00000000 T enable_interrupts
          U memcpy
          U panic
          U printf
          U reset_cpu
00000048 T show_regs
arm_920TDI-nm: libimx.a: File format not recognized

--
Steven




More information about the U-Boot mailing list