1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # !! 2 # Makefile for Sparc library files.. 3 # Makefile for x86 specific library files. << 4 # 3 # 5 4 6 # Produces uninteresting flaky coverage. !! 5 asflags-y := -ansi -DST_DIV0=0x02 7 KCOV_INSTRUMENT_delay.o := n << 8 6 9 # KCSAN uses udelay for introducing watchpoint !! 7 lib-$(CONFIG_SPARC32) += ashrdi3.o 10 KCSAN_SANITIZE_delay.o := n !! 8 lib-$(CONFIG_SPARC32) += memcpy.o memset.o 11 ifdef CONFIG_KCSAN !! 9 lib-y += strlen.o 12 # In case KCSAN+lockdep+ftrace are enabled, di !! 10 lib-y += checksum_$(BITS).o 13 # lockdep -> [other libs] -> KCSAN -> udelay - !! 11 lib-$(CONFIG_SPARC32) += blockops.o 14 CFLAGS_REMOVE_delay.o = $(CC_FLAGS_FTRACE) !! 12 lib-y += memscan_$(BITS).o memcmp.o strncmp_$(BITS).o 15 endif !! 13 lib-$(CONFIG_SPARC32) += divdi3.o udivdi3.o 16 !! 14 lib-$(CONFIG_SPARC32) += copy_user.o locks.o 17 inat_tables_script = $(srctree)/arch/x86/tools !! 15 lib-$(CONFIG_SPARC64) += atomic_64.o 18 inat_tables_maps = $(srctree)/arch/x86/lib/x86 !! 16 lib-$(CONFIG_SPARC32) += lshrdi3.o ashldi3.o 19 quiet_cmd_inat_tables = GEN $@ !! 17 lib-$(CONFIG_SPARC32) += muldi3.o bitext.o 20 cmd_inat_tables = $(AWK) -f $(inat_table !! 18 lib-$(CONFIG_SPARC64) += multi3.o 21 !! 19 lib-$(CONFIG_SPARC64) += fls.o 22 $(obj)/inat-tables.c: $(inat_tables_script) $( !! 20 lib-$(CONFIG_SPARC64) += fls64.o 23 $(call cmd,inat_tables) !! 21 lib-$(CONFIG_SPARC64) += NG4fls.o 24 !! 22 25 $(obj)/inat.o: $(obj)/inat-tables.c !! 23 lib-$(CONFIG_SPARC64) += copy_page.o clear_page.o bzero.o 26 !! 24 lib-$(CONFIG_SPARC64) += csum_copy.o csum_copy_from_user.o csum_copy_to_user.o 27 clean-files := inat-tables.c !! 25 lib-$(CONFIG_SPARC64) += VISsave.o 28 !! 26 lib-$(CONFIG_SPARC64) += bitops.o 29 obj-$(CONFIG_SMP) += msr-smp.o cache-smp.o !! 27 30 !! 28 lib-$(CONFIG_SPARC64) += U1memcpy.o U1copy_from_user.o U1copy_to_user.o 31 lib-y := delay.o misc.o cmdline.o cpu.o !! 29 32 lib-y += usercopy_$(BITS).o usercopy.o getuser !! 30 lib-$(CONFIG_SPARC64) += U3memcpy.o U3copy_from_user.o U3copy_to_user.o 33 lib-y += memcpy_$(BITS).o !! 31 lib-$(CONFIG_SPARC64) += U3patch.o 34 lib-y += pc-conf-reg.o !! 32 35 lib-$(CONFIG_ARCH_HAS_COPY_MC) += copy_mc.o co !! 33 lib-$(CONFIG_SPARC64) += NGmemcpy.o NGcopy_from_user.o NGcopy_to_user.o 36 lib-$(CONFIG_INSTRUCTION_DECODER) += insn.o in !! 34 lib-$(CONFIG_SPARC64) += NGpatch.o NGpage.o NGbzero.o 37 lib-$(CONFIG_RANDOMIZE_BASE) += kaslr.o !! 35 38 lib-$(CONFIG_FUNCTION_ERROR_INJECTION) += err !! 36 lib-$(CONFIG_SPARC64) += NG2memcpy.o NG2copy_from_user.o NG2copy_to_user.o 39 lib-$(CONFIG_MITIGATION_RETPOLINE) += retpolin !! 37 lib-$(CONFIG_SPARC64) += NG2patch.o 40 !! 38 41 obj-y += msr.o msr-reg.o msr-reg-export.o hwei !! 39 lib-$(CONFIG_SPARC64) += NG4memcpy.o NG4copy_from_user.o NG4copy_to_user.o 42 obj-y += iomem.o !! 40 lib-$(CONFIG_SPARC64) += NG4patch.o NG4copy_page.o NG4clear_page.o NG4memset.o 43 !! 41 44 ifeq ($(CONFIG_X86_32),y) !! 42 lib-$(CONFIG_SPARC64) += Memcpy_utils.o 45 obj-y += atomic64_32.o !! 43 46 lib-y += atomic64_cx8_32.o !! 44 lib-$(CONFIG_SPARC64) += M7memcpy.o M7copy_from_user.o M7copy_to_user.o 47 lib-y += checksum_32.o !! 45 lib-$(CONFIG_SPARC64) += M7patch.o M7memset.o 48 lib-y += strstr_32.o !! 46 49 lib-y += string_32.o !! 47 lib-$(CONFIG_SPARC64) += GENmemcpy.o GENcopy_from_user.o GENcopy_to_user.o 50 lib-y += memmove_32.o !! 48 lib-$(CONFIG_SPARC64) += GENpatch.o GENpage.o GENbzero.o 51 lib-y += cmpxchg8b_emu.o !! 49 52 ifneq ($(CONFIG_X86_CMPXCHG64),y) !! 50 lib-$(CONFIG_SPARC64) += copy_in_user.o memmove.o 53 lib-y += atomic64_386_32.o !! 51 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o 54 endif !! 52 55 else !! 53 obj-$(CONFIG_SPARC64) += iomap.o 56 ifneq ($(CONFIG_GENERIC_CSUM),y) !! 54 obj-$(CONFIG_SPARC32) += atomic32.o 57 lib-y += csum-partial_64.o csum-copy_6 !! 55 obj-$(CONFIG_SPARC64) += PeeCeeI.o 58 endif << 59 lib-y += clear_page_64.o copy_page_64. << 60 lib-y += memmove_64.o memset_64.o << 61 lib-y += copy_user_64.o copy_user_unca << 62 lib-y += cmpxchg16b_emu.o << 63 endif <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.