Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp953002ybh; Sun, 19 Jul 2020 04:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzREmw9ncIGKH19+G69sMeIWlP9nq7XI5YA2c2M+wM4xcgMJt7P+uJA+0/Pr+D+PmqfFKwk X-Received: by 2002:a17:906:2b52:: with SMTP id b18mr16636804ejg.158.1595157110441; Sun, 19 Jul 2020 04:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595157110; cv=none; d=google.com; s=arc-20160816; b=VK0mUb7+H04rgK5+AbB+heR+snGEeCMnZtegm3MelU2NOKJZuBJFrP3QY0ApX5v/Vw TtJkWcBfhfzzX/vxfCNuaRweyEugyfQFGO+sTlHwP6fgqB08mc2/TLmVIPD/UsptgoVG rPW7F4tlCqyFxjPIv7LOlYH/xDL57l+42sqtc9boZ4lQ75EZRb0Q+v44PTpEOMfIFT7R r7VwnMkz1q9zxCYUFYWc3tWAw2GkvQQUk7zIerh4U4AhaO44aa0ZFDf2rvwU+Pc5eOBE /R/JUZ469khEcy41kKQbLX6IXzjH5M7z28Wz1zL3Fo8iegP6Iw26NB3cjxrMuNLR6/xw bC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=zDqW2b2XMZ5wAfg7sHuZmu/331vudy3InpUCbJNlWrM=; b=pr0eTHkCH0lxD8QhatRPn2ihx9v6RVQQu1InGD4dG9ge00rAr4Vm33aS1MGD9QYFZJ WWfbhDwZFI/hUoKUTnbGVcLL/nmx9AykBxFQd7Sh2xT7ZCJMHRF4DUthPVULtEGYpitq kxOREK6G35NbSNZo3GI9XtBNaXzuEJuHrD2RTzuVHpKUulvQaUinE4CCww2YzrZ/+ZhT u+3nfE97RsOB965zLzXIZJVGwVpU55Uu+jEOVj95xCqhoojTB4JjqzNEtMLBXE533+fH E5R9eGWHa406uwCF0TQS3km1voKPu6OzwCwtasBTG4PyGOC9b6FP2a2MJ7I1maBBpvOO Up4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=aR1gXZAF; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=ObeCLGfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si8914540edy.592.2020.07.19.04.11.27; Sun, 19 Jul 2020 04:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=aR1gXZAF; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=ObeCLGfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbgGSLIy (ORCPT + 99 others); Sun, 19 Jul 2020 07:08:54 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51114 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgGSLIu (ORCPT ); Sun, 19 Jul 2020 07:08:50 -0400 Date: Sun, 19 Jul 2020 11:08:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595156927; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zDqW2b2XMZ5wAfg7sHuZmu/331vudy3InpUCbJNlWrM=; b=aR1gXZAFaI1Q39Drw77XkX4Q8wvHew5oB9eXK6JaGK9m7/DfgGOFfhaw+tM1GbgcejdrLs 7+MqznXKrD+n1kEztcGVIxOHxvqDlpyJ1rOoj7ijemTU7qoJg8TTzUzbh5yjw8Xuji1hEk m5EPSjWCP0qF3DIQyxuSL5d9jmX40Ir9Rrp6qk3ksWJISuI9/V7v3L4pPerR3Sre4eDx/S lwJYGoYnBKgmVbwjn6WXB/H3c5faI7PFkfnpz2RC9nogrt4Zo3oP0Eomwq9zTaas9lZB15 M0E9sucVeEfrceRqgYO4Xo4vG+UWFuDT315JUjKfuMJ2iK0W7vNfjG1lXCerAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595156927; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zDqW2b2XMZ5wAfg7sHuZmu/331vudy3InpUCbJNlWrM=; b=ObeCLGfw56kpNeC70VXK280Blxlc3PkyyI0XWrA7BRQk7UK8WMqd/GwkAd8barjNIz1lVn wSMJN27fqVqobmAQ== From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/boot: Don't add the EFI stub to targets Cc: Arvind Sankar , Thomas Gleixner , Masahiro Yamada , Ard Biesheuvel , x86 , LKML In-Reply-To: <20200715032631.1562882-1-nivedita@alum.mit.edu> References: <20200715032631.1562882-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Message-ID: <159515692603.4006.6720081328208221414.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: da05b143a308bd6a7a444401f9732678ae63fc70 Gitweb: https://git.kernel.org/tip/da05b143a308bd6a7a444401f9732678ae63fc70 Author: Arvind Sankar AuthorDate: Tue, 14 Jul 2020 23:26:31 -04:00 Committer: Thomas Gleixner CommitterDate: Sun, 19 Jul 2020 13:07:11 +02:00 x86/boot: Don't add the EFI stub to targets vmlinux-objs-y is added to targets, which currently means that the EFI stub gets added to the targets as well. It shouldn't be added since it is built elsewhere. This confuses Makefile.build which interprets the EFI stub as a target $(obj)/$(objtree)/drivers/firmware/efi/libstub/lib.a and will create drivers/firmware/efi/libstub/ underneath arch/x86/boot/compressed, to hold this supposed target, if building out-of-tree. [0] Fix this by pulling the stub out of vmlinux-objs-y into efi-obj-y. [0] See scripts/Makefile.build near the end: # Create directories for object files if they do not exist Signed-off-by: Arvind Sankar Signed-off-by: Thomas Gleixner Reviewed-by: Masahiro Yamada Acked-by: Ard Biesheuvel Link: https://lkml.kernel.org/r/20200715032631.1562882-1-nivedita@alum.mit.edu --- 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 7619742..5a828fd 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -90,8 +90,8 @@ endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o -vmlinux-objs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o +efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a # The compressed kernel is built with -fPIC/-fPIE so that a boot loader # can place it anywhere in memory and it will still run. However, since @@ -115,7 +115,7 @@ endef quiet_cmd_check-and-link-vmlinux = LD $@ cmd_check-and-link-vmlinux = $(cmd_check_data_rel); $(cmd_ld) -$(obj)/vmlinux: $(vmlinux-objs-y) FORCE +$(obj)/vmlinux: $(vmlinux-objs-y) $(efi-obj-y) FORCE $(call if_changed,check-and-link-vmlinux) OBJCOPYFLAGS_vmlinux.bin := -R .comment -S