lib/crypto/Makefile | 3 +++ 1 file changed, 3 insertions(+)
Make the generated file powerpc/aesp8-ppc.S be removed by 'make clean'.
Fixes: 7cf2082e74ce ("lib/crypto: powerpc/aes: Migrate POWER8 optimized code into library")
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
lib/crypto/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile
index 725eef05b758..dc7a56f7287d 100644
--- a/lib/crypto/Makefile
+++ b/lib/crypto/Makefile
@@ -53,10 +53,13 @@ endif # CONFIG_PPC
libaes-$(CONFIG_RISCV) += riscv/aes-riscv64-zvkned.o
libaes-$(CONFIG_SPARC) += sparc/aes_asm.o
libaes-$(CONFIG_X86) += x86/aes-aesni.o
endif # CONFIG_CRYPTO_LIB_AES_ARCH
+# clean-files must be defined unconditionally
+clean-files += powerpc/aesp8-ppc.S
+
################################################################################
obj-$(CONFIG_CRYPTO_LIB_AESCFB) += libaescfb.o
libaescfb-y := aescfb.o
base-commit: ebba09f198078b7a2565004104ef762d1148e7f0
--
2.53.0
On Mon, Mar 16, 2026 at 09:49:25PM -0700, Eric Biggers wrote:
> Make the generated file powerpc/aesp8-ppc.S be removed by 'make clean'.
>
> Fixes: 7cf2082e74ce ("lib/crypto: powerpc/aes: Migrate POWER8 optimized code into library")
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
> lib/crypto/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-fixes
- Eric
On Tue, 17 Mar 2026, at 05:49, Eric Biggers wrote:
> Make the generated file powerpc/aesp8-ppc.S be removed by 'make clean'.
>
> Fixes: 7cf2082e74ce ("lib/crypto: powerpc/aes: Migrate POWER8 optimized
> code into library")
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
> lib/crypto/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
> diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile
> index 725eef05b758..dc7a56f7287d 100644
> --- a/lib/crypto/Makefile
> +++ b/lib/crypto/Makefile
> @@ -53,10 +53,13 @@ endif # CONFIG_PPC
> libaes-$(CONFIG_RISCV) += riscv/aes-riscv64-zvkned.o
> libaes-$(CONFIG_SPARC) += sparc/aes_asm.o
> libaes-$(CONFIG_X86) += x86/aes-aesni.o
> endif # CONFIG_CRYPTO_LIB_AES_ARCH
>
> +# clean-files must be defined unconditionally
> +clean-files += powerpc/aesp8-ppc.S
> +
>
> ################################################################################
>
> obj-$(CONFIG_CRYPTO_LIB_AESCFB) += libaescfb.o
> libaescfb-y := aescfb.o
>
>
> base-commit: ebba09f198078b7a2565004104ef762d1148e7f0
> --
> 2.53.0
© 2016 - 2026 Red Hat, Inc.