public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Cleanup cpu/arm920t
Date: Tue, 10 Aug 2004 11:09:03 +0200	[thread overview]
Message-ID: <411890AF.4090308@imc-berlin.de> (raw)
In-Reply-To: <20040810082502.8AD07C109F@atlas.denx.de>

Wolfgang Denk wrote:

> In message <41187E37.4030100@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

  reply	other threads:[~2004-08-10  9:09 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-06 16:02 [U-Boot-Users] [PATCH] Cleanup cpu/arm920t Steven Scholz
2004-08-06 16:41 ` Wolfgang Denk
2004-08-09  6:49   ` Steven Scholz
2004-08-09  9:02     ` llandre
2004-08-09 20:08       ` Wolfgang Denk
2004-08-09 20:07     ` Wolfgang Denk
2004-08-09 10:50   ` llandre
2004-08-09 20:10     ` Wolfgang Denk
2004-08-10  6:12       ` Steven Scholz
2004-08-10  7:44         ` Wolfgang Denk
2004-08-10  7:50           ` Steven Scholz
2004-08-10  8:24             ` Wolfgang Denk
2004-08-10  9:09               ` Steven Scholz [this message]
2004-08-11 10:45                 ` Steven Scholz
2004-08-11 14:23                   ` llandre
2004-08-11 15:02                     ` Wolfgang Denk
2004-08-11 15:53                     ` Steven Scholz
2004-08-11 16:06                       ` Steven Scholz
2004-08-11 17:09                         ` Wolfgang Denk
2004-08-11 16:31                       ` Wolfgang Denk
2004-08-11 16:34                       ` llandre
2004-08-11 17:10                         ` Wolfgang Denk
2004-08-11 17:28                           ` llandre
2004-08-11 18:10                             ` Wolfgang Denk
2004-08-12  7:44                               ` llandre
2004-08-12 11:56                               ` Steven Scholz
2004-08-12 12:54                                 ` Wolfgang Denk
2004-08-12 14:10                                   ` Steven Scholz
2004-08-10  7:34       ` llandre
2004-08-10  8:22         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-08-10  6:31 Mészáros Lajos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=411890AF.4090308@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox