Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp682723lqp; Wed, 12 Jun 2024 12:59:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWqbyiWdm71vDL23m83g9XD8O7EiHmcFsDeXkYfsFCGWiMNDVz3ZfjdV8dpP23SBvcfVD2h5S0Ypuvz5g6JGu49cYeNeKUNnGVhnc1/Q== X-Google-Smtp-Source: AGHT+IFv+EnK+ktEkveBNWyQA2yeNMMjU0m2EAUpd3ECuG07aimSi22G5sWAAFmnm5Z2g0p3seHV X-Received: by 2002:a05:6a20:12c7:b0:1b6:6f0:6d5c with SMTP id adf61e73a8af0-1b8befd97d6mr954240637.11.1718222369653; Wed, 12 Jun 2024 12:59:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718222369; cv=pass; d=google.com; s=arc-20160816; b=SoexuhFlZxZb7eyPqsbIzZjPCGbvm8kpdFdCY7IIP9zVjC3x03nxqnI9rDlb+X652s sD6x9h9yafg6jF54aptqRIJcInyjOlOUG6cDFYyt6GZf7Z2kx0eJzAgMOkhyTKenbRum uqm6rChsK/Gr1X1NJrdltxWBpl7OphqVTvYbQcelKQRlNse6UIQYzKZcVyK5vvkOC8RV KUO5GHuwlQ9mo7Rnu1GxPBicFEYJwSaccRRC9G+dSWX3erwRJyVN11xYTOTu9YxIBwhW Cc7H43sKf5/lny6KqtAyBUfqhDupLp6C2RuACk0sMpTA+Y7XDpiUrGZ1vfHQJnMCb9Rf 2Tgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=DnH5fWF1vZdpxO/xmNthzzpxxZmShkacESefN2gAYOU=; fh=NGlV/zVz2wR9lABrpQBEUWEbL/h76N8Vsvd92l/XeWs=; b=ktbLceYkZV/t2Rfe+zOzEO4p00VrdYh2X9OUnnfDybVWIzoQksicws5m12/sZFZuv/ 3xnJCXttaBx+mGHdAvivq7JYLodDpP5W07dCLAlcPNvJk69zRjAO0gn/tkiKxWCvaxMO BFaUSH7rHX3O188/NYLPPilnbIOId0iY1VNd3altKOTG0v/zZkvCRpVTXZWnn+H+VwQv AdsTxSUJIGP1Xd14wSzH5iRuzvqZeerA/xrXtofBJfVH7U7CtOP74ciVnEmQuWFmtyOi nRKj/EukX6ULGTmrcXXR3vNgDPl+FVCdyCZi//7EnunmRxnfm0gJO/HRWlfWhT3Lq+LA W9CA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=k5YzWpmx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de27ccd833si9472130a12.562.2024.06.12.12.59.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=k5YzWpmx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2B13FB21787 for ; Wed, 12 Jun 2024 19:44:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2CC383CD5; Wed, 12 Jun 2024 19:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="k5YzWpmx" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE72982860 for ; Wed, 12 Jun 2024 19:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718221488; cv=none; b=PmgNBw2KYPPgF4/AHoS+sF9NkliD9+e4igDJYXwOzIVz7xHirNYXZQb22hKC29useOp4UKtIblwdXDUUZdp5tKiDLelGUbl8RVrhoa/k8sf07AMXBzMLK7sWPf3H5RalLsHE6OYpk9fggVwg00DEWt+7o2EBsBlKm25NYTdyDBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718221488; c=relaxed/simple; bh=OR1d5VyF/7X0e1TsHxZ9Lk78cj+zPyBIY+rt5wIGorQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ia80xgdLUKC0FvLSomgCtzfEMm+NvQnhz689zTV5A7opuWwcshf+kZT0FX7OVuy8+8ajMkSJk5L+1DTXiUF7h4uIyHq9AN7ZCRqUe8IRUdIfmyRTeGkCFIcKz1T3TrcUwb2Et5JJaYrD2QxaA/ZbTMO3E7FlzbtyoFe6QgAIlWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=k5YzWpmx; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1f61742a024so42385ad.0 for ; Wed, 12 Jun 2024 12:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718221486; x=1718826286; darn=vger.kernel.org; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=DnH5fWF1vZdpxO/xmNthzzpxxZmShkacESefN2gAYOU=; b=k5YzWpmxyJIFr7fjvTPmYboZhtgs4Np5p9QLirs4LtpJD+4NLsnn23AvkugL6bE37V KE5qjBKGT46/UjOWpRtGeABAvj9ijHclzifBp0NZpmJE0EFFEDl1WKbaUtlnc56xL00Q btaRUTTISrF3aCJmZXgYyEMd2OLznCcuxyKuRdzz+tlbxWOV35nGEx768WQfn1p5udOx eflPofpM12ADnYqFbT9Tk7qIcPmem1z53MlsUq6ckcZpePbpOsVohzh4pS9HY94DSe2X ZAZPh0tyNg5lb1dJk1oQMpxCmkxO4Lhmd+jclgJaKmRus25nFY8Yc9n3XAdkjaMYlxnH oHyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718221486; x=1718826286; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DnH5fWF1vZdpxO/xmNthzzpxxZmShkacESefN2gAYOU=; b=P3AQmKpgc8LurKTgKShZPFUF3j1nLcAEk905hiHtBeiddTlE8SarK7KA7/DEhkGKlA ExKNz86taeAwx3vquNDRN+4pzkpG9OvaWlQxTMI9qk/fl3aK6enbTVI1COUHJdz0AH5m EAnTTV5uHMZtSiCEi5g61W27EZWedBW6Wrv6aJKVNQNwS0QRLz9Lhb9cew7eueOts2KR g4rJcbWZo5A/N7lrBuLMJKhrRe0j+CZ1FLr51a1TFn/PKpU9byAs8NGm6DLAZlSRdD6o a6lUHzljjYdF+WYwmMWjsnVn9LfTzTUnoCe7RF5SviNx0t2g0Uh8oBz/2MDWIvhwC02H 0JUw== X-Gm-Message-State: AOJu0Yyt/0bZMKvycMoCyP1A3GSx52phhokyGBN/UT3wJqmGhZvcGHh6 Iz/Vx/TnwDL6TfyqojFSYjCgTWZnedDcOL8W5jrOLNaZ9cWBpOeYvxnfmVkEXw== X-Received: by 2002:a17:902:fc90:b0:1f7:3bb8:c32f with SMTP id d9443c01a7336-1f84ff3fde6mr451775ad.13.1718221485651; Wed, 12 Jun 2024 12:44:45 -0700 (PDT) Received: from bsegall.svl.corp.google.com.localhost ([2620:15c:2a3:200:bcff:f772:74b7:8f03]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7042571df69sm7905262b3a.52.2024.06.12.12.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:44:45 -0700 (PDT) From: Benjamin Segall To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Arvind Sankar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: [PATCH v2] x86/boot: Don't add the EFI stub to targets, again Date: Wed, 12 Jun 2024 12:44:44 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain This is a re-commit of the commit da05b143a308 ("x86/boot: Don't add the EFI stub to targets") after the tagged patch incorrectly reverted it. To summarize: 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 Reviewed-by: Ard Biesheuvel Cc: stable@vger.kernel.org # v6.1+ --- arch/x86/boot/compressed/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 243ee86cb1b1..f2051644de94 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -103,13 +103,13 @@ vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o $(obj)/tdx-shared.o vmlinux-objs-$(CONFIG_UNACCEPTED_MEMORY) += $(obj)/mem.o 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 $(obj)/vmlinux.bin: vmlinux FORCE $(call if_changed,objcopy) -- 2.45.2.505.gda0bf45e8d-goog