[U-Boot] [PATCH] Switch from archive libraries to partial linking

Andreas Bießmann andreas.devel at googlemail.com
Wed Nov 10 09:01:19 CET 2010


Dear Mike Frysinger,

Am 10.11.2010 07:57, schrieb Mike Frysinger:
> On Monday, November 08, 2010 17:04:32 Sebastien Carlier wrote:

> the config.mk looks weird:
> +cmd_link_o_target = $(if $(strip $1),\
> +                      $(LD) -r -o $@ $1 ,\
> +                      rm -f $@; $(AR) rcs $@ )
> 
> why do you need the rm/ar ?

If one input ($1) is empty the linker ($(LD) -r) would complain empty
input. Therefore we buid an empty archive with $(AR) rcs

regards

Andreas Bießmann


More information about the U-Boot mailing list