From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 23 Jul 2009 17:33:43 +0200 Subject: [U-Boot] [PATCH v2] Make linking against libgcc configurable In-Reply-To: <4A68782B.3070401@esd.eu> References: <1248347380-27013-1-git-send-email-wd@denx.de> <1248347759-28119-1-git-send-email-wd@denx.de> <4A686566.409@esd.eu> <4A686FB6.1080405@denx.de> <4A6876FC.6020809@esd.eu> <4A68782B.3070401@esd.eu> Message-ID: <4A6882D7.5040708@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Date: Thu Jul 23 13:18:40 2009 +0200 arm: add _lshrdi3.S Signed-off-by: Heiko Schocher commit de463168e15733fd1f66f472399f7b93758f6a9e Author: Wolfgang Denk 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 Cc: Jean-Christophe PLAGNIOL-VILLARD Cc: Prafulla Wadaskar cc: Stefan Roese commit 6da36a407c7e0d48789f10338477a3a8f612301f Author: Dirk Behme 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 CC: Simon Kagstrom commit 189eec77795553157c087cd45555695fb3ce2433 Merge: faca03c... 84efbf4... Author: Wolfgang Denk 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 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