Commit 660e98f2e3dca173d0290653191f2b4850c38033
Committed by
Albert ARIBAUD
1 parent
c497be78b3
Exists in
master
and in
54 other branches
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>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
spl/Makefile
... | ... | @@ -65,6 +65,12 @@ |
65 | 65 | LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o |
66 | 66 | endif |
67 | 67 | |
68 | +# Add GCC lib | |
69 | +ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") | |
70 | +PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/libgcc.o | |
71 | +PLATFORM_LIBS := $(filter-out %/libgcc.o, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC) | |
72 | +endif | |
73 | + | |
68 | 74 | START := $(addprefix $(SPLTREE)/,$(START)) |
69 | 75 | LIBS := $(addprefix $(SPLTREE)/,$(sort $(LIBS-y))) |
70 | 76 |