1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# linux/arch/arm/lib/Makefile 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds# Copyright (C) 1995-2000 Russell King 61da177e4SLinus Torvalds# 71da177e4SLinus Torvalds 8714656a8SEric Biggersobj-y += crypto/ 9714656a8SEric Biggers 106dc5fd93SNathan Huckleberrylib-y := changebit.o csumipv6.o csumpartial.o \ 111da177e4SLinus Torvalds csumpartialcopy.o csumpartialcopyuser.o clearbit.o \ 12d0a533b1SWill Deacon delay.o delay-loop.o findbit.o memchr.o memcpy.o \ 13ff5fdafcSNicolas Pitre memmove.o memset.o setbit.o \ 14fadab094SNicolas Pitre strchr.o strrchr.o \ 15fadab094SNicolas Pitre testchangebit.o testclearbit.o testsetbit.o \ 16a0c6fdb9SNicolas Pitre ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \ 174d448714SLinus Torvalds ucmpdi2.o lib1funcs.o div64.o \ 182d81f1feSWill Deacon io-readsb.o io-writesb.o io-readsl.o io-writesl.o \ 19017f161aSKim Phillips call_with_stack.o bswapsdi2.o 201da177e4SLinus Torvalds 21c2563038SNicolas Pitremmu-y := clear_user.o copy_page.o getuser.o putuser.o \ 22c2563038SNicolas Pitre copy_from_user.o copy_to_user.o 23fadab094SNicolas Pitre 246dc5fd93SNathan Huckleberryifdef CONFIG_CC_IS_CLANG 256dc5fd93SNathan Huckleberry lib-y += backtrace-clang.o 266dc5fd93SNathan Huckleberryelse 276dc5fd93SNathan Huckleberry lib-y += backtrace.o 286dc5fd93SNathan Huckleberryendif 296dc5fd93SNathan Huckleberry 3039ec58f3SLennert Buytenhek# using lib_ here won't override already available weak symbols 3139ec58f3SLennert Buytenhekobj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o 3239ec58f3SLennert Buytenhek 339641c7ccSRussell Kinglib-$(CONFIG_MMU) += $(mmu-y) 34080fc66fSRussell King 35080fc66fSRussell Kingifeq ($(CONFIG_CPU_32v3),y) 36080fc66fSRussell King lib-y += io-readsw-armv3.o io-writesw-armv3.o 37080fc66fSRussell Kingelse 381da177e4SLinus Torvalds lib-y += io-readsw-armv4.o io-writesw-armv4.o 39080fc66fSRussell Kingendif 40080fc66fSRussell King 411da177e4SLinus Torvalds$(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S 421da177e4SLinus Torvalds$(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S 4301956597SArd Biesheuvel 4401956597SArd Biesheuvelifeq ($(CONFIG_KERNEL_MODE_NEON),y) 45c4162431SSamuel Holland CFLAGS_xor-neon.o += $(CC_FLAGS_FPU) 469319206dSArd Biesheuvel obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o 4701956597SArd Biesheuvelendif 48aaa4dd1bSWang Kefeng 49aaa4dd1bSWang Kefengobj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o 501e1b6dbcSEric Biggers 511e1b6dbcSEric Biggersobj-$(CONFIG_CRC32_ARCH) += crc32-arm.o 52*6cc25e4bSEric Biggerscrc32-arm-y := crc32.o crc32-core.o 531684e829SEric Biggers 541684e829SEric Biggersobj-$(CONFIG_CRC_T10DIF_ARCH) += crc-t10dif-arm.o 55*6cc25e4bSEric Biggerscrc-t10dif-arm-y := crc-t10dif.o crc-t10dif-core.o 56