[PATCH v2 2/3] lib/crypto: poly1305: Consolidate into single module
Eric Biggers
ebiggers at kernel.org
Thu Aug 28 21:11:28 PDT 2025
On Sat, Aug 23, 2025 at 10:57:35PM -0400, Eric Biggers wrote:
> +ifeq ($(CONFIG_MIPS),y)
> +libpoly1305-y += mips/poly1305-core.o
> +poly1305-perlasm-flavour-$(CONFIG_32BIT) := o32
> +poly1305-perlasm-flavour-$(CONFIG_64BIT) := 64
> +quiet_cmd_perlasm_poly1305 = PERLASM $@
> + cmd_perlasm_poly1305 = $(PERL) $< $(poly1305-perlasm-flavour-y) $@
> +# Use if_changed instead of cmd, in case the flavour changed.
> +$(obj)/mips/poly1305-core.S: $(src)/mips/poly1305-mips.pl FORCE
> + $(call if_changed,perlasm_poly1305)
> +endif
Sorry, I realized I still didn't get these build rules right. It needs
the following to prevent mips/poly1305-core.S from always being built:
targets += mips/poly1305-core.S
RISC-V version needs that too, in patch 3. I'll fix it.
- Eric
More information about the linux-riscv
mailing list