summaryrefslogtreecommitdiff
path: root/lib/crc/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-06-07 23:04:45 +0300
committerEric Biggers <ebiggers@kernel.org>2025-06-30 19:31:57 +0300
commit530b304f00f278b3aa31bdfccf09b3ffb457a607 (patch)
treeaf162952c0ee4c6a9fa05ff4b664f42cd792db33 /lib/crc/Makefile
parent0bcfca56406dc6342e30fafe41a2f34cdde029b4 (diff)
downloadlinux-530b304f00f278b3aa31bdfccf09b3ffb457a607.tar.xz
lib/crc: arm: Migrate optimized CRC code into lib/crc/
Move the arm-optimized CRC code from arch/arm/lib/crc* into its new location in lib/crc/arm/, and wire it up in the new way. This new way of organizing the CRC code eliminates the need to artificially split the code for each CRC variant into separate arch and generic modules, enabling better inlining and dead code elimination. For more details, see "lib/crc: Prepare for arch-optimized code in subdirs of lib/crc/". Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com> Acked-by: Ingo Molnar <mingo@kernel.org> Acked-by: "Jason A. Donenfeld" <Jason@zx2c4.com> Link: https://lore.kernel.org/r/20250607200454.73587-4-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crc/Makefile')
-rw-r--r--lib/crc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crc/Makefile b/lib/crc/Makefile
index 926edc3b035f..c72d351be6cb 100644
--- a/lib/crc/Makefile
+++ b/lib/crc/Makefile
@@ -13,12 +13,14 @@ obj-$(CONFIG_CRC_T10DIF) += crc-t10dif.o
crc-t10dif-y := crc-t10dif-main.o
ifeq ($(CONFIG_CRC_T10DIF_ARCH),y)
CFLAGS_crc-t10dif-main.o += -I$(src)/$(SRCARCH)
+crc-t10dif-$(CONFIG_ARM) += arm/crc-t10dif-core.o
endif
obj-$(CONFIG_CRC32) += crc32.o
crc32-y := crc32-main.o
ifeq ($(CONFIG_CRC32_ARCH),y)
CFLAGS_crc32-main.o += -I$(src)/$(SRCARCH)
+crc32-$(CONFIG_ARM) += arm/crc32-core.o
endif
obj-$(CONFIG_CRC64) += crc64.o