mm: make wait_on_page_writeback() wait for multiple pending writebacks
[linux/fpc-iii.git] / arch / arm / crypto / Makefile
blobb745c17d356fe6ea83989f1dd647427395a71304
1 # SPDX-License-Identifier: GPL-2.0
3 # Arch-specific CryptoAPI modules.
6 obj-$(CONFIG_CRYPTO_AES_ARM) += aes-arm.o
7 obj-$(CONFIG_CRYPTO_AES_ARM_BS) += aes-arm-bs.o
8 obj-$(CONFIG_CRYPTO_SHA1_ARM) += sha1-arm.o
9 obj-$(CONFIG_CRYPTO_SHA1_ARM_NEON) += sha1-arm-neon.o
10 obj-$(CONFIG_CRYPTO_SHA256_ARM) += sha256-arm.o
11 obj-$(CONFIG_CRYPTO_SHA512_ARM) += sha512-arm.o
12 obj-$(CONFIG_CRYPTO_CHACHA20_NEON) += chacha-neon.o
13 obj-$(CONFIG_CRYPTO_POLY1305_ARM) += poly1305-arm.o
14 obj-$(CONFIG_CRYPTO_NHPOLY1305_NEON) += nhpoly1305-neon.o
15 obj-$(CONFIG_CRYPTO_CURVE25519_NEON) += curve25519-neon.o
17 obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o
18 obj-$(CONFIG_CRYPTO_SHA1_ARM_CE) += sha1-arm-ce.o
19 obj-$(CONFIG_CRYPTO_SHA2_ARM_CE) += sha2-arm-ce.o
20 obj-$(CONFIG_CRYPTO_GHASH_ARM_CE) += ghash-arm-ce.o
21 obj-$(CONFIG_CRYPTO_CRCT10DIF_ARM_CE) += crct10dif-arm-ce.o
22 obj-$(CONFIG_CRYPTO_CRC32_ARM_CE) += crc32-arm-ce.o
24 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o
25 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o
26 sha1-arm-y := sha1-armv4-large.o sha1_glue.o
27 sha1-arm-neon-y := sha1-armv7-neon.o sha1_neon_glue.o
28 sha256-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha256_neon_glue.o
29 sha256-arm-y := sha256-core.o sha256_glue.o $(sha256-arm-neon-y)
30 sha512-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha512-neon-glue.o
31 sha512-arm-y := sha512-core.o sha512-glue.o $(sha512-arm-neon-y)
32 sha1-arm-ce-y := sha1-ce-core.o sha1-ce-glue.o
33 sha2-arm-ce-y := sha2-ce-core.o sha2-ce-glue.o
34 aes-arm-ce-y := aes-ce-core.o aes-ce-glue.o
35 ghash-arm-ce-y := ghash-ce-core.o ghash-ce-glue.o
36 crct10dif-arm-ce-y := crct10dif-ce-core.o crct10dif-ce-glue.o
37 crc32-arm-ce-y:= crc32-ce-core.o crc32-ce-glue.o
38 chacha-neon-y := chacha-scalar-core.o chacha-glue.o
39 chacha-neon-$(CONFIG_KERNEL_MODE_NEON) += chacha-neon-core.o
40 poly1305-arm-y := poly1305-core.o poly1305-glue.o
41 nhpoly1305-neon-y := nh-neon-core.o nhpoly1305-neon-glue.o
42 curve25519-neon-y := curve25519-core.o curve25519-glue.o
44 ifdef REGENERATE_ARM_CRYPTO
45 quiet_cmd_perl = PERL $@
46 cmd_perl = $(PERL) $(<) > $(@)
48 $(src)/poly1305-core.S_shipped: $(src)/poly1305-armv4.pl
49 $(call cmd,perl)
51 $(src)/sha256-core.S_shipped: $(src)/sha256-armv4.pl
52 $(call cmd,perl)
54 $(src)/sha512-core.S_shipped: $(src)/sha512-armv4.pl
55 $(call cmd,perl)
56 endif
58 clean-files += poly1305-core.S sha256-core.S sha512-core.S
60 # massage the perlasm code a bit so we only get the NEON routine if we need it
61 poly1305-aflags-$(CONFIG_CPU_V7) := -U__LINUX_ARM_ARCH__ -D__LINUX_ARM_ARCH__=5
62 poly1305-aflags-$(CONFIG_KERNEL_MODE_NEON) := -U__LINUX_ARM_ARCH__ -D__LINUX_ARM_ARCH__=7
63 AFLAGS_poly1305-core.o += $(poly1305-aflags-y)