xref: /openbmc/linux/arch/sh/lib/Makefile (revision 8bc6666f)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for SuperH-specific library files..
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
6dfc34940SStuart Menefylib-y  = delay.o memmove.o memchr.o \
7cdf50b23SPaul Mundt	 checksum.o strlen.o div64.o div64-generic.o
81da177e4SLinus Torvalds
91aad54a9SPaul Mundt# Extracted from libgcc
10*8bc6666fSGeert Uytterhoevenobj-y += movmem.o ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o udiv_qrnnd.o
111aad54a9SPaul Mundt
123b041227STakashi YOSHIIudivsi3-y			:= udivsi3_i4i-Os.o
131aad54a9SPaul Mundt
141aad54a9SPaul Mundtifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)
153b041227STakashi YOSHIIudivsi3-$(CONFIG_CPU_SH3)	:= udivsi3_i4i.o
163b041227STakashi YOSHIIudivsi3-$(CONFIG_CPU_SH4)	:= udivsi3_i4i.o
171aad54a9SPaul Mundtendif
183b041227STakashi YOSHIIudivsi3-y			+= udivsi3.o
191aad54a9SPaul Mundt
20e3b08600SAdrian Bunkobj-y				+= io.o
21e3b08600SAdrian Bunk
221da177e4SLinus Torvaldsmemcpy-y			:= memcpy.o
231da177e4SLinus Torvaldsmemcpy-$(CONFIG_CPU_SH4)	:= memcpy-sh4.o
241da177e4SLinus Torvalds
25dfc34940SStuart Menefymemset-y			:= memset.o
26dfc34940SStuart Menefymemset-$(CONFIG_CPU_SH4)	:= memset-sh4.o
27dfc34940SStuart Menefy
28221c007bSPaul Mundtlib-$(CONFIG_MMU)		+= copy_page.o __clear_user.o
29473d1cf4SPaul Mundtlib-$(CONFIG_MCOUNT)		+= mcount.o
30dfc34940SStuart Menefylib-y				+= $(memcpy-y) $(memset-y) $(udivsi3-y)
31