12c98833aSArd Biesheuvel# 22c98833aSArd Biesheuvel# linux/arch/arm64/crypto/Makefile 32c98833aSArd Biesheuvel# 42c98833aSArd Biesheuvel# Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> 52c98833aSArd Biesheuvel# 62c98833aSArd Biesheuvel# This program is free software; you can redistribute it and/or modify 72c98833aSArd Biesheuvel# it under the terms of the GNU General Public License version 2 as 82c98833aSArd Biesheuvel# published by the Free Software Foundation. 92c98833aSArd Biesheuvel# 102c98833aSArd Biesheuvel 112c98833aSArd Biesheuvelobj-$(CONFIG_CRYPTO_SHA1_ARM64_CE) += sha1-ce.o 122c98833aSArd Biesheuvelsha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 136ba6c74dSArd Biesheuvel 146ba6c74dSArd Biesheuvelobj-$(CONFIG_CRYPTO_SHA2_ARM64_CE) += sha2-ce.o 156ba6c74dSArd Biesheuvelsha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 16fdd23894SArd Biesheuvel 17fdd23894SArd Biesheuvelobj-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o 18fdd23894SArd Biesheuvelghash-ce-y := ghash-ce-glue.o ghash-ce-core.o 19317f2f75SArd Biesheuvel 20317f2f75SArd Biesheuvelobj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 21317f2f75SArd BiesheuvelCFLAGS_aes-ce-cipher.o += -march=armv8-a+crypto 22a3fd8210SArd Biesheuvel 23a3fd8210SArd Biesheuvelobj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o 24a3fd8210SArd Biesheuvelaes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o 2549788fe2SArd Biesheuvel 2649788fe2SArd Biesheuvelobj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o 2749788fe2SArd Biesheuvelaes-ce-blk-y := aes-glue-ce.o aes-ce.o 2849788fe2SArd Biesheuvel 2949788fe2SArd Biesheuvelobj-$(CONFIG_CRYPTO_AES_ARM64_NEON_BLK) += aes-neon-blk.o 3049788fe2SArd Biesheuvelaes-neon-blk-y := aes-glue-neon.o aes-neon.o 3149788fe2SArd Biesheuvel 3249788fe2SArd BiesheuvelAFLAGS_aes-ce.o := -DINTERLEAVE=2 -DINTERLEAVE_INLINE 3349788fe2SArd BiesheuvelAFLAGS_aes-neon.o := -DINTERLEAVE=4 3449788fe2SArd Biesheuvel 3549788fe2SArd BiesheuvelCFLAGS_aes-glue-ce.o := -DUSE_V8_CRYPTO_EXTENSIONS 3649788fe2SArd Biesheuvel 37f6f203faSYazen Ghannamobj-$(CONFIG_CRYPTO_CRC32_ARM64) += crc32-arm64.o 38f6f203faSYazen Ghannam 39f6f203faSYazen GhannamCFLAGS_crc32-arm64.o := -mcpu=generic+crc 40f6f203faSYazen Ghannam 4149788fe2SArd Biesheuvel$(obj)/aes-glue-%.o: $(src)/aes-glue.c FORCE 427c2105fbSAndreas Schwab $(call if_changed_rule,cc_o_c) 43