Hi  Dirk,

Thanks for the information. i looked at he  nand_util.c and used the
same do_div in my code and was able to compile without any issues.

Regards
Gururaja


> Don't do this. Compiler/Linker then tries to use math from libraries
coming with your tool chain. Normally, U-Boot should be completely
independent of any external libraries.
> 
> Option is to modify your code that compiler/linker doesn't need
external libraries:
> 
> - Try to use shift operation instead of div. E.g. "c = c >> x"
> 
> - If this doesn't work, have a look to U-Boot's lib_arm directory and
use only math available there. E.g (nand_util.c): do_div(n,
opts->length);
> 
> Cheers
> 
> Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to