public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] kbuild: fix SPL link bug when USE_PRIVATE_LIBGCC is "yes"
@ 2014-02-24 11:44 Masahiro Yamada
  2014-02-24 18:02 ` Stephen Warren
  2014-02-25 13:58 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2014-02-24 11:44 UTC (permalink / raw)
  To: u-boot

Commit 6825a95 (kbuild: use Linux Kernel build scripts)
changed the behavior of linkage when USE_PRIAVATE_LIBGCC
is defined as "yes".
(It dropped arch/arm/lib/eabi_compat.o from the
target library.)

Affected boards are all Tegra boards.

This commit gets back the same behavior as before Kbuild series.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Tom Rini <trini@ti.com>
---

Hello Tom(Rini),

I made a serious mistake in the Kbuild series. (Commit 6825a95)
Sorry.

This patch fixes the problem and gets back the originial
link behavior.

Please pick this.


 spl/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/spl/Makefile b/spl/Makefile
index da1c3c0..346d0aa 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -133,7 +133,8 @@ libs-y := $(patsubst %/, %/built-in.o, $(libs-y))
 
 # Add GCC lib
 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
-PLATFORM_LIBS := $(SPLTREE)/arch/$(ARCH)/lib/lib.a
+PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/lib.a
+PLATFORM_LIBS := $(filter-out %/lib.a, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC)
 endif
 
 u-boot-spl-init := $(head-y)
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-25 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 11:44 [U-Boot] [PATCH] kbuild: fix SPL link bug when USE_PRIVATE_LIBGCC is "yes" Masahiro Yamada
2014-02-24 18:02 ` Stephen Warren
2014-02-25  0:24   ` Masahiro Yamada
2014-02-25 13:58 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox