]> git.itanic.dy.fi Git - linux-stable/commit
x86/boot/compressed: Only build mem_encrypt.S if AMD_MEM_ENCRYPT=y
authorArd Biesheuvel <ardb@kernel.org>
Tue, 22 Nov 2022 16:10:16 +0000 (17:10 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 24 Nov 2022 07:57:41 +0000 (08:57 +0100)
commit61de13df95901bc58456bc5acdbd3c18c66cf859
tree01af1293f208236bd1d16b177fe1256b33ccb83c
parent30c9ca16a5271ba6f8ad9c86507ff1c789c94677
x86/boot/compressed: Only build mem_encrypt.S if AMD_MEM_ENCRYPT=y

Avoid building the mem_encrypt.o object if memory encryption support is
not enabled to begin with.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221122161017.2426828-17-ardb@kernel.org
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/mem_encrypt.S