All of lore.kernel.org
 help / color / mirror / Atom feed
From: Allen Martin <amartin@nvidia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v7 14/15] spl: fix SPL build of private libgcc
Date: Mon, 16 Jul 2012 16:02:18 -0700	[thread overview]
Message-ID: <1342479739-7594-15-git-send-email-amartin@nvidia.com> (raw)
In-Reply-To: <1342479739-7594-1-git-send-email-amartin@nvidia.com>

This fixes the SPL build to link with the SPL version of libgcc if
USE_PRIVATE_LIBGCC is set to "yes".  Previously it was linking with
the libgcc from the normal u-boot build because it gets set in
PLATFORM_LIBS and passed down the to the SPL build.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 spl/Makefile |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/spl/Makefile b/spl/Makefile
index d04d2f2..c82e9de 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -66,6 +66,12 @@ ifeq ($(SOC),tegra20)
 LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o
 endif
 
+# Add GCC lib
+ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
+PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/libgcc.o
+PLATFORM_LIBS := $(filter-out %/libgcc.o, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC)
+endif
+
 START := $(addprefix $(SPLTREE)/,$(START))
 LIBS := $(addprefix $(SPLTREE)/,$(sort $(LIBS-y)))
 
-- 
1.7.9.5

  parent reply	other threads:[~2012-07-16 23:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 23:02 [U-Boot] [PATCH v7 00/15] split tegra20 arm7 code into separate SPL Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 01/15] tegra20: rename tegra2 -> tegra20 Allen Martin
2012-07-19 11:30   ` Simon Glass
2012-07-16 23:02 ` [U-Boot] [PATCH v7 02/15] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 03/15] tegra20: rename CONFIG_MACH_TEGRA_GENERIC Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 04/15] tegra20: tec: add tegra20-common-post.h Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 05/15] tegra20: make board mkdir commands unconditional Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 06/15] mkconfig: add support for SPL CPU Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 07/15] ARM: Fix arm720t SPL build Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 08/15] tegra20: remove timer_init from " Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 09/15] ARM: add tegra20 support to arm720t Allen Martin
2012-07-19 11:34   ` Simon Glass
2012-07-16 23:02 ` [U-Boot] [PATCH v7 10/15] tegra20: add u-boot-*-tegra.bin targets Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 11/15] tegra20: move SDRAM param save to later in boot Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 12/15] tegra20: enable SPL for tegra20 boards Allen Martin
2012-07-16 23:02 ` [U-Boot] [PATCH v7 13/15] arm: enable libgcc build for SPL Allen Martin
2012-07-16 23:02 ` Allen Martin [this message]
2012-07-16 23:02 ` [U-Boot] [PATCH v7 15/15] tegra20: Remove armv4t build flags Allen Martin
2012-07-17 19:32 ` [U-Boot] [PATCH v7 00/15] split tegra20 arm7 code into separate SPL Tom Warren
2012-07-19  0:02   ` Allen Martin
2012-07-19 15:37     ` Tom Warren
2012-07-19 20:09       ` Simon Glass
2012-07-23 20:38         ` Tom Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342479739-7594-15-git-send-email-amartin@nvidia.com \
    --to=amartin@nvidia.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.