From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0114E82495; Wed, 19 Jun 2024 13:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718803214; cv=none; b=o01iYPc1pHJgRLCL4tsLW9mO+98CCi2DNSsgarl7tOYTaBJQe6XWpku7VH+y0utnxnJ5t9er2agxn8QQEuATd/TEW2bRKdW1zQYcRtyxal7SRArvhVhStYi+NJYW8+7JpdPKx2UE8I5K21lsIUoOy+FhpAMrmigCV8PuK+rMILE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718803214; c=relaxed/simple; bh=lbFVb5ZmHMNOlzNogOVD+D+jEgwzNefblVs3JOWv3BI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RMvQuZN02lmA/Rm10dG1xpPQRas/JOclK0rTMwxv1+azZLqKD4mtWno3ligWdirouugN6MaR/u3Ep9BGgEo3EkU9HhpVCid/lLg33Y1uHselAE4e6fiUIielh9LJGQd2HIwQf/OJL4yqS9+QVr9sG3qnUO27FVsAEhrkU1LYt6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IeOMm6OI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IeOMm6OI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 799E7C2BBFC; Wed, 19 Jun 2024 13:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718803213; bh=lbFVb5ZmHMNOlzNogOVD+D+jEgwzNefblVs3JOWv3BI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IeOMm6OItD440jjhB1/avRfbegPrU73zPZAf5l4gEMRX6IduFEiy2WPXvL1pt4uVX 3h/pp8fQusDDNCj9as1Hk5PG3Fxg4HCaZdnilga7FnPLPf7vdbcNdvXGQM6Y2vF6JL ufrZMJjviI0/nU/a8zRasTmMKL0FuqjD9qouQgiA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ben Segall , "Borislav Petkov (AMD)" , Ard Biesheuvel Subject: [PATCH 6.9 192/281] x86/boot: Dont add the EFI stub to targets, again Date: Wed, 19 Jun 2024 14:55:51 +0200 Message-ID: <20240619125617.336934417@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619125609.836313103@linuxfoundation.org> References: <20240619125609.836313103@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Benjamin Segall commit b2747f108b8034271fd5289bd8f3a7003e0775a3 upstream. 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 Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Ard Biesheuvel Cc: stable@vger.kernel.org # v6.1+ Link: https://lore.kernel.org/r/xm267ceukksz.fsf@bsegall.svl.corp.google.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/boot/compressed/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -116,9 +116,9 @@ vmlinux-objs-$(CONFIG_UNACCEPTED_MEMORY) vmlinux-objs-$(CONFIG_EFI) += $(obj)/efi.o vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_mixed.o -vmlinux-objs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a +vmlinux-libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a -$(obj)/vmlinux: $(vmlinux-objs-y) FORCE +$(obj)/vmlinux: $(vmlinux-objs-y) $(vmlinux-libs-y) FORCE $(call if_changed,ld) OBJCOPYFLAGS_vmlinux.bin := -R .comment -S