On Sun, Apr 20, 2025 at 12:26:01PM -0700, Eric Biggers wrote: > diff --git a/arch/arm/lib/crypto/Makefile b/arch/arm/lib/crypto/Makefile > new file mode 100644 > index 0000000000000..dbdf376e25336 > --- /dev/null > +++ b/arch/arm/lib/crypto/Makefile > @@ -0,0 +1,24 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +obj-$(CONFIG_CRYPTO_BLAKE2S_ARM) += libblake2s-arm.o > +libblake2s-arm-y:= blake2s-core.o blake2s-glue.o > + > +obj-$(CONFIG_CRYPTO_CHACHA20_NEON) += chacha-neon.o > +chacha-neon-y := chacha-scalar-core.o chacha-glue.o > +chacha-neon-$(CONFIG_KERNEL_MODE_NEON) += chacha-neon-core.o > + > +obj-$(CONFIG_CRYPTO_POLY1305_ARM) += poly1305-arm.o > +poly1305-arm-y := poly1305-core.o poly1305-glue.o > + > +quiet_cmd_perl = PERL $@ > + cmd_perl = $(PERL) $(<) > $(@) > + > +$(obj)/%-core.S: $(src)/%-armv4.pl > + $(call cmd,perl) > + > +clean-files += poly1305-core.S > + > +# massage the perlasm code a bit so we only get the NEON routine if we need > it > +poly1305-aflags-$(CONFIG_CPU_V7) := -U__LINUX_ARM_ARCH__ > -D__LINUX_ARM_ARCH__=5 > +poly1305-aflags-$(CONFIG_KERNEL_MODE_NEON) := -U__LINUX_ARM_ARCH__ > -D__LINUX_ARM_ARCH__=7 > +AFLAGS_poly1305-core.o += $(poly1305-aflags-y) $(aflags-thumb2-y)
As noticed by kernel test robot (https://lore.kernel.org/oe-kbuild-all/202504210545.llc4jakq-...@intel.com), I forgot to include the following line here: aflags-thumb2-$(CONFIG_THUMB2_KERNEL) := -U__thumb2__ -D__thumb2__=1