]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/crypto: ensure generated *.S files are removed on make clean
authorTal Zussman <tz2294@columbia.edu>
Thu, 14 Aug 2025 06:51:57 +0000 (02:51 -0400)
committerEric Biggers <ebiggers@kernel.org>
Fri, 15 Aug 2025 01:01:03 +0000 (18:01 -0700)
commitfd7e5de4b2eddd34e3567cd419812d8869ef4f13
treecc2b8a3e78b9dcf5b4e0c38fda01b96a8c664609
parentd73915fdc0011d536c03856be7ec451f6a5fb4ff
lib/crypto: ensure generated *.S files are removed on make clean

make clean does not check the kernel config when removing files. As
such, additions to clean-files under CONFIG_ARM or CONFIG_ARM64 are not
evaluated. For example, when building on arm64, this means that
lib/crypto/arm64/sha{256,512}-core.S are left over after make clean.

Set clean-files unconditionally to ensure that make clean removes these
files.

Fixes: e96cb9507f2d ("lib/crypto: sha256: Consolidate into single module")
Fixes: 24c91b62ac50 ("lib/crypto: arm/sha512: Migrate optimized SHA-512 code to library")
Fixes: 60e3f1e9b7a5 ("lib/crypto: arm64/sha512: Migrate optimized SHA-512 code to library")
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Link: https://lore.kernel.org/r/20250814-crypto_clean-v2-1-659a2dc86302@columbia.edu
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/Makefile