18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# linux/arch/arm/lib/Makefile 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_ci# Copyright (C) 1995-2000 Russell King 68c2ecf20Sopenharmony_ci# 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cilib-y := changebit.o csumipv6.o csumpartial.o \ 98c2ecf20Sopenharmony_ci csumpartialcopy.o csumpartialcopyuser.o clearbit.o \ 108c2ecf20Sopenharmony_ci delay.o delay-loop.o findbit.o memchr.o memcpy.o \ 118c2ecf20Sopenharmony_ci memmove.o memset.o setbit.o \ 128c2ecf20Sopenharmony_ci strchr.o strrchr.o \ 138c2ecf20Sopenharmony_ci testchangebit.o testclearbit.o testsetbit.o \ 148c2ecf20Sopenharmony_ci ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \ 158c2ecf20Sopenharmony_ci ucmpdi2.o lib1funcs.o div64.o \ 168c2ecf20Sopenharmony_ci io-readsb.o io-writesb.o io-readsl.o io-writesl.o \ 178c2ecf20Sopenharmony_ci call_with_stack.o bswapsdi2.o 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cimmu-y := clear_user.o copy_page.o getuser.o putuser.o \ 208c2ecf20Sopenharmony_ci copy_from_user.o copy_to_user.o 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciifdef CONFIG_CC_IS_CLANG 238c2ecf20Sopenharmony_ci lib-y += backtrace-clang.o 248c2ecf20Sopenharmony_cielse 258c2ecf20Sopenharmony_ci lib-y += backtrace.o 268c2ecf20Sopenharmony_ciendif 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci# using lib_ here won't override already available weak symbols 298c2ecf20Sopenharmony_ciobj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cilib-$(CONFIG_MMU) += $(mmu-y) 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciifeq ($(CONFIG_CPU_32v3),y) 348c2ecf20Sopenharmony_ci lib-y += io-readsw-armv3.o io-writesw-armv3.o 358c2ecf20Sopenharmony_cielse 368c2ecf20Sopenharmony_ci lib-y += io-readsw-armv4.o io-writesw-armv4.o 378c2ecf20Sopenharmony_ciendif 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciifeq ($(CONFIG_ARCH_RPC),y) 408c2ecf20Sopenharmony_ci AFLAGS_delay-loop.o += -march=armv4 418c2ecf20Sopenharmony_ciendif 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci$(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S 448c2ecf20Sopenharmony_ci$(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciifeq ($(CONFIG_KERNEL_MODE_NEON),y) 478c2ecf20Sopenharmony_ci NEON_FLAGS := -march=armv7-a -mfloat-abi=softfp -mfpu=neon 488c2ecf20Sopenharmony_ci CFLAGS_xor-neon.o += $(NEON_FLAGS) 498c2ecf20Sopenharmony_ci obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o 508c2ecf20Sopenharmony_ciendif 51