[U-Boot] [PATCH v2] Make linking against libgcc configurable

Heiko Schocher hs at denx.de
Thu Jul 23 17:33:43 CEST 2009


Hello Daniel,

Daniel Gorsulowski wrote:
> Sorry, it was my misstake.
> 
> By c&p and applying yout patch I missed the changes in lib_arm/Makefile.
> But as i wrote, _lshrdi3.a does not compile.

Why do you use c&p, and not better tools?

Compiling the meesc board with actual u-boot and the patches
from Wolfgang, Dirk and me, works fine for me:

[hs at pollux u-boot]$ make mrproper
[hs at pollux u-boot]$ make meesc_config
Configuring for meesc board...
[hs at pollux u-boot]$ make USE_PRIVATE_LIBGCC=yes -s all
[hs at pollux u-boot]$
[hs at pollux u-boot]$ ls -al u-boot.bin
-rwxrwxr-x 1 hs hs 136820 23. Jul 17:25 u-boot.bin
[hs at pollux u-boot]$
[hs at pollux u-boot]$ git log
commit 21fd74874f0f7d95509c726162da213dcc6e7db1
Author: Heiko Schocher <hs at denx.de>
Date:   Thu Jul 23 13:18:40 2009 +0200

    arm: add _lshrdi3.S

    Signed-off-by: Heiko Schocher <hs at denx.de>

commit de463168e15733fd1f66f472399f7b93758f6a9e
Author: Wolfgang Denk <wd at denx.de>
Date:   Thu Jul 23 13:15:59 2009 +0200

    Make linking against libgcc configurable

    Many (especially ARM) tool chains seem to come with broken or
    otherwise unusable (for the purposes of builing U-Boot) run-time
    support libraries `libgcc.a'. By using the "USE_PRIVATE_LIBGCC"
    setting we allow to use alternative libraries instead.

    "USE_PRIVATE_LIBGCC" can either be set as an environment variable in
    the shell, or as a command line argument when running "make", i. e.
        $ make USE_PRIVATE_LIBGCC=yes
    or
        $ USE_PRIVATE_LIBGCC=yes
        $ export USE_PRIVATE_LIBGCC
        $ make

    The value of "USE_PRIVATE_LIBGCC" is the name of the directory which
    contains the alternative run-time support library `libgcc.a'. The
    special value "yes" selects the directory $(OBJTREE)/lib_$(ARCH) .

    Note that not all architectures provide an alternative `libgcc.a' in
    their lib_$(ARCH) directories - so far, only ARM does.

    Signed-off-by: Wolfgang Denk <wd at denx.de>
    Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
    Cc: Prafulla Wadaskar <prafulla at marvell.com>
    cc: Stefan Roese <sr at denx.de>

commit 6da36a407c7e0d48789f10338477a3a8f612301f
Author: Dirk Behme <dirk.behme at googlemail.com>
Date:   Wed Jul 22 17:51:56 2009 +0200

    Use do_div from div64.h for vsprintf

    Use do_div from div64.h for vsprintf in case of 64bit division.
    For 32bit division, do_div from div64.h can't be used as it
    needs a 64bit parameter.

    Signed-off-by: Dirk Behme <dirk.behme at googlemail.com>
    CC: Simon Kagstrom <simon.kagstrom at netinsight.net>

commit 189eec77795553157c087cd45555695fb3ce2433
Merge: faca03c... 84efbf4...
Author: Wolfgang Denk <wd at denx.de>
Date:   Thu Jul 23 01:00:17 2009 +0200

    Merge branch 'master' of /home/wd/git/u-boot/custodians

commit 84efbf4d144ff8aaed3cca036aebb1fe69eff3f4
Merge: 49a7720... 57215cd...
Author: Wolfgang Denk <wd at denx.de>
Date:   Thu Jul 23 00:59:37 2009 +0200

    Merge branch 'master' of git://git.denx.de/u-boot-arm

bye
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list