summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorAllen Martin <amartin@nvidia.com>2012-08-31 08:30:14 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:22 +0200
commit660e98f2e3dca173d0290653191f2b4850c38033 (patch)
tree60f6d74f55bf708eaee650352343492733e1d740 /spl/Makefile
parentc497be78b399241de2f89cee2e3acc7c33f47609 (diff)
downloadu-boot-imx-660e98f2e3dca173d0290653191f2b4850c38033.zip
u-boot-imx-660e98f2e3dca173d0290653191f2b4850c38033.tar.gz
u-boot-imx-660e98f2e3dca173d0290653191f2b4850c38033.tar.bz2
spl: fix SPL build of private libgcc
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> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 8946d82..476a5e6 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -65,6 +65,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)))