Skip to contentSkip to conversation

m68k: add private libgcc

PATCH In review Angelo Dureghello 2 participants 2 messages Dec 6, 2015 – Dec 15, 2015 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: add private libgcc

Add private libgcc

---
 arch/Kconfig            |  1 +
 arch/m68k/lib/Makefile  |  4 +++
 arch/m68k/lib/ashldi3.c | 50 ++++++++++++++++++++++++++++++++++
 arch/m68k/lib/lshrdi3.c | 50 ++++++++++++++++++++++++++++++++++
 arch/m68k/lib/muldi3.c  | 71 +++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 176 insertions(+)
 create mode 100644 arch/m68k/lib/ashldi3.c
 create mode 100644 arch/m68k/lib/lshrdi3.c
 create mode 100644 arch/m68k/lib/muldi3.c
arch/Kconfig +1 -0
index 6489cc9..1709d40 100644
@@ -40,6 +40,7 @@ config BLACKFIN
 
 config M68K
 	bool "M68000 architecture"
+	select HAVE_PRIVATE_LIBGCC
 	select HAVE_GENERIC_BOARD
 	select SYS_GENERIC_BOARD
 
arch/m68k/lib/Makefile +4 -0
index 73d40bd..dbca42c 100644
@@ -5,6 +5,10 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
+## Build a couple of necessary functions into a private libgcc
+## if the user asked for it
+lib-$(CONFIG_USE_PRIVATE_LIBGCC) += lshrdi3.o muldi3.o ashldi3.o
+
 obj-$(CONFIG_CMD_BOOTM) += bootm.o
 obj-y	+= cache.o
 obj-y	+= interrupts.o
arch/m68k/lib/ashldi3.c new file +50 -0

51 lines not on this page · raw message

arch/m68k/lib/lshrdi3.c new file +50 -0

51 lines not on this page · raw message

arch/m68k/lib/muldi3.c new file +71 -0

71 lines not on this page · raw message

Signature · 1 line
2.5.3
#1 lore raw
Quoted 3 lines · angelo at sysam.it

Add private libgcc

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151215/f87dda38/attachment.sig>