Dear Jean-Christophe PLAGNIOL-VILLARD, In message <[email protected]> you wrote: > add weak lowlel_init
What does "lowlel" mean? You definitely want to add a more descriptive comment here waht you are doing, why you are doing it, and why you are doing it this way. > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> > --- > config.mk | 3 +++ > cpu/arm926ejs/at91/Makefile | 2 +- > cpu/arm926ejs/at91/lowlevel_init.S | 2 ++ > 3 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/config.mk b/config.mk > index b1254e9..94b8c7c 100644 > --- a/config.mk > +++ b/config.mk > @@ -76,6 +76,9 @@ STRIP = $(CROSS_COMPILE)strip > OBJCOPY = $(CROSS_COMPILE)objcopy > OBJDUMP = $(CROSS_COMPILE)objdump > RANLIB = $(CROSS_COMPILE)RANLIB > +cmd_link_o_target = $(if $(strip $(2)),\ > + $(LD) $(PLATFORM_LDFLAGS) -r -o $(1) $(2) ,\ > + rm -f $@; $(AR) rcs $(1)) Please make sure to use $(STRIP) instead of 'strip', and $ARFLAGS) instead of 'rcs' > ######################################################################### > > diff --git a/cpu/arm926ejs/at91/Makefile b/cpu/arm926ejs/at91/Makefile > index 2d2a888..662657c 100644 > --- a/cpu/arm926ejs/at91/Makefile > +++ b/cpu/arm926ejs/at91/Makefile > @@ -36,7 +36,7 @@ OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) > all: $(obj).depend $(LIB) > > $(LIB): $(OBJS) > - $(AR) $(ARFLAGS) $@ $(OBJS) > + $(call cmd_link_o_target, $@, $(OBJS)) > > ######################################################################### > > diff --git a/cpu/arm926ejs/at91/lowlevel_init.S > b/cpu/arm926ejs/at91/lowlevel_init.S > index ec6ad5d..54b3f3d 100644 > --- a/cpu/arm926ejs/at91/lowlevel_init.S > +++ b/cpu/arm926ejs/at91/lowlevel_init.S > @@ -30,6 +30,8 @@ > #ifndef CONFIG_SKIP_LOWLEVEL_INIT > > .globl lowlevel_init > +.weak lowlevel_init > +.set lowlevel_init,function > lowlevel_init: If this change is needed for AT91 only, then cmd_link_o_target should not be added to the global config.mk - why not add it to cpu/arm926ejs/at91/config.mk ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Diplomacy is the art of saying "nice doggy" until you can find a rock. _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

