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

Kumar Gala galak at kernel.crashing.org
Tue Jan 25 09:55:45 CET 2011


On Jan 25, 2011, at 12:36 AM, Wolfgang Denk wrote:

> Dear Kumar Gala,
> 
> In message <356989C7-FA92-46D5-9FB6-5F9332ECBFD5 at kernel.crashing.org> you wrote:
>> 
>> The issue is that the code under post/lib_powerpc/fpu/* is compiled with:
>> 
>> CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//)
>> CFLAGS += -mhard-float -fkeep-inline-functions
>> 
>> We need to see if we can avoid building the whole post/lib_powerpc/fpu/* dir if CONFIG_POST_FPU isn't set in CONFIG_POST.
> 
> This might solve the warning in most cases - but what abut these where
> CONFIG_POST_FPU is defined?  I mean, it is inherent that these tests
> need to execute FP instructions.
> 
> Best regards,
> 
> Wolfgang Denk

Actually we've dealt with this already:

commit ce82ff05388b5ddafdf6082ef0776cce72c40b1c
Author: Yuri Tikhonov <yur at emcraft.com>
Date:   Sat Dec 20 14:54:21 2008 +0300

    FPU POST: fix warnings when building with 2.18 binutils
    
    When compile u-boot with the 2.18 binutils the following
    warning messages for each object file in post/lib_ppc/fpu/ is
    produced at the linking stage:
    
    post/libpost.a(acc1.o) uses hard float, u-boot uses soft-float
    ...
    

...

However I think we just need to move the code a bit.  Will post a patch

- k

- k


More information about the U-Boot mailing list