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
This commit is contained in:
Ard Biesheuvel 2022-11-22 17:10:16 +01:00 • committed by Borislav Petkov
commit 61de13df95
2 changed files with 1 additions and 3 deletions