mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
Move the contents of arch/mips/lib/crypto/ into lib/crypto/mips/. The new code organization makes a lot more sense for how this code actually works and is developed. In particular, it makes it possible to build each algorithm as a single module, with better inlining and dead code elimination. For a more detailed explanation, see the patchset which did this for the CRC library code: https://lore.kernel.org/r/[email protected]/. Also see the patchset which did this for SHA-512: https://lore.kernel.org/linux-crypto/[email protected]/ This is just a preparatory commit, which does the move to get the files into their new location but keeps them building the same way as before. Later commits will make the actual improvements to the way the arch-optimized code is integrated for each algorithm. Add a gitignore entry for the removed directory arch/mips/lib/crypto/ so that people don't accidentally commit leftover generated files. Acked-by: Ard Biesheuvel <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Sohil Mehta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
20 lines
586 B
Makefile
20 lines
586 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
obj-$(CONFIG_CRYPTO_CHACHA_MIPS) += chacha-mips.o
|
|
chacha-mips-y := chacha-core.o chacha-glue.o
|
|
AFLAGS_chacha-core.o += -O2 # needed to fill branch delay slots
|
|
|
|
obj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o
|
|
poly1305-mips-y := poly1305-core.o poly1305-glue.o
|
|
|
|
perlasm-flavour-$(CONFIG_32BIT) := o32
|
|
perlasm-flavour-$(CONFIG_64BIT) := 64
|
|
|
|
quiet_cmd_perlasm = PERLASM $@
|
|
cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@)
|
|
|
|
$(obj)/poly1305-core.S: $(src)/poly1305-mips.pl FORCE
|
|
$(call if_changed,perlasm)
|
|
|
|
targets += poly1305-core.S
|