x86/boot: Don't add the EFI stub to targets, again
authorBenjamin Segall <bsegall@google.com>
Wed, 12 Jun 2024 19:44:44 +0000 (12:44 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 13 Jun 2024 08:32:36 +0000 (10:32 +0200)
commitb2747f108b8034271fd5289bd8f3a7003e0775a3
tree70318a8ce9a0f1a8c7f3c8e3af84f10467180a27
parent8c860ed825cb85f6672cd7b10a8f33e3498a7c81
x86/boot: Don't add the EFI stub to targets, again

This is a re-commit of

  da05b143a308 ("x86/boot: Don't add the EFI stub to targets")

after the tagged patch incorrectly reverted it.

vmlinux-objs-y is added to targets, with an assumption that they are all
relative to $(obj); adding a $(objtree)/drivers/...  path causes the
build to incorrectly create a useless
arch/x86/boot/compressed/drivers/...  directory tree.

Fix this just by using a different make variable for the EFI stub.

Fixes: cb8bda8ad443 ("x86/boot/compressed: Rename efi_thunk_64.S to efi-mixed.S")
Signed-off-by: Ben Segall <bsegall@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: stable@vger.kernel.org # v6.1+
Link: https://lore.kernel.org/r/xm267ceukksz.fsf@bsegall.svl.corp.google.com
arch/x86/boot/compressed/Makefile