xref: /openbmc/linux/arch/mips/lib/Makefile (revision c059ee9d)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for MIPS-specific library files..
4#
5
6lib-y	+= bitops.o csum_partial.o delay.o memcpy.o memset.o \
7	   mips-atomic.o strncpy_user.o \
8	   strnlen_user.o uncached.o
9
10obj-y			+= iomap_copy.o
11obj-$(CONFIG_PCI)	+= iomap-pci.o
12lib-$(CONFIG_GENERIC_CSUM)	:= $(filter-out csum_partial.o, $(lib-y))
13
14obj-$(CONFIG_CPU_GENERIC_DUMP_TLB) += dump_tlb.o
15obj-$(CONFIG_CPU_R3000)		+= r3k_dump_tlb.o
16
17# libgcc-style stuff needed in the kernel
18obj-y += bswapsi.o bswapdi.o multi3.o
19