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

Steven Scholz steven.scholz at imc-berlin.de
Tue Aug 10 11:09:03 CEST 2004


Wolfgang Denk wrote:

> In message <41187E37.4030100 at imc-berlin.de> you wrote:
> 
>>I thought of something like cpu/arm920t/imx/libimx.a and 
> 
> 
> OK.
> 
> 
>>cpu/arm920t/s3c24x0/s3c24x0.a. But I don't want to add them the the main 
>>Makefile.
> 
> 
> NO. Not the toplevel makefile. But maybe cpu/*/Makefile ?
> 
> 
>>Now I am wondering how I can put several sublibs together to one 
>>cpu/$(CPU)/lib$(CPU).a ...
> 
> 
> By running "ar" ?

My first attempt to do something like

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

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


Although coming to think about it

arm_920TDI-ar crv libimx.a imx_generic.o imx_interrupts.o imx_serial.o 
imx_speed.o
a - imx_generic.o
a - imx_interrupts.o
a - imx_serial.o
a - imx_speed.o
make[2]: Leaving directory 
`/home/scholz/Projekte/HiResDisplay/u-boot.work/cpu/arm920t/imx'
arm_920TDI-ar crv libarm920t.a cpu.o interrupts.o imx/libimx.a
a - cpu.o
a - interrupts.o
a - imx/libimx.a
make[1]: Leaving directory 
`/home/scholz/Projekte/HiResDisplay/u-boot.work/cpu/arm920t'

looks quit good, doesn't it? I thought

	arm_920TDI-ar crv libarm920t.a cpu.o interrupts.o imx/libimx.a

would not work, but maybe the error is somewhere else...

--

Steven











More information about the U-Boot mailing list