From patchwork Thu Mar 14 04:26:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13592086 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47AE2C54E5D for ; Thu, 14 Mar 2024 04:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EezOz6RS6tfJGnU0OChjqoXC9BP4VDmmmUJgHkwA4rc=; b=VxZ5l6Qw/2vKO7 3JeL0ylpHfmajAAdW3wsV0RSq03BJLiXBlUKD8OyDguN8o33rGtIwD8B5VnFOSTfO8PtrCll8LHZ0 38vPEcNCdusl1iXdV+Vgoo5miMS6QTTzuEsnK88MyVuyX1pZPTHhD4W1MihQ9kYaSrSoVdgsMgqrc f//6JTT1LG6AidJBGnme/D4CSyMGl2lOBoVgW3fq4DyL6TE3YXhsg6DE/KEpeg6QopujntfP8Wgxh GTohHcDt4uNdhrAiU4RZKuVU180rYQ3GTvC+GzykX5H14yGs69VxhNYTOOxyHeFoVeqSy0oUwb6Iu vACktnb4Vd3vj2mQ+YYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkchl-0000000Cvpw-2SHn; Thu, 14 Mar 2024 04:28:33 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkchh-0000000CvpH-0Ciz for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 04:28:31 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1dc3b4b9b62so3684305ad.1 for ; Wed, 13 Mar 2024 21:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710390507; x=1710995307; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sj1MXeANmDRLF3MEitp9MoX29tLTgbBs/EQT3G4Krt4=; b=R0AXBYgKpWErCNOcnuhG268LR6P2m9elEvz119XNwAahxfwxngNF/O4Jqw9PZEB++W eMSc4NTWp1L6U/MyXtgcNqWu+tpYUK5GRdTIWaPkbsTR4adsk2JOWN2I4yN9GsFwufZv e/juJxS6IbxCDAOD1Li8vkX42qkCotapmBHt8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710390507; x=1710995307; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sj1MXeANmDRLF3MEitp9MoX29tLTgbBs/EQT3G4Krt4=; b=gysve5fVr5qSh+E7mawnkxV4E4RJguvrxqEy+egQeTb7QuMqcA8Bn8OBO9WUvjWrGY 0jzHfo1cl7FrzP9pVGqwawOVZUn9vwdmh+BZhO7ZCGTtn4NdMVOp682w2vBTece8wdtl ny+UjEmbG6cXjwP9AhBWEyKrrq8Utxad+3RqAOyZ8nVpd7mbLuWqcPqSp7q4W4N1JmSi ynCclpVeJLUAvgbkAHRl49FaPwSQ8mwLF9YoSR4uliJ5PP7VAeHj4Pp5CKmr+CfxI6GU HrF8gQ17P9mZgI9eNMNRC2IKg3xqqnkcEfjaw9rckw7a6H8UittefHrcOKk581DSIsFx PFyA== X-Gm-Message-State: AOJu0YxLRZN/Mv5OO9vVQUL3s6GvjkclgXg9PLwgZxZ1crT1h3BH/pdx SEh2Kw+IgYCYkNOrglzsgsHrUL4xRp+vanHLbzCercP6UbgVZjjl0W/H/W2v+DYILcsdGvuEnJA = X-Google-Smtp-Source: AGHT+IGGQ7GdScbH3CvI6seZ6/6CyftsJCfDx8hL8rSVmYyHMWvrc7qxaObFDWDqWeqs47hyWv/jkQ== X-Received: by 2002:a17:902:f612:b0:1dd:c938:8f8e with SMTP id n18-20020a170902f61200b001ddc9388f8emr1411096plg.10.1710390506692; Wed, 13 Mar 2024 21:28:26 -0700 (PDT) Received: from chromium.org ([118.149.78.37]) by smtp.gmail.com with ESMTPSA id u5-20020a170903124500b001dd98195371sm479200plh.181.2024.03.13.21.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 21:28:26 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Ahmad Fatoum , Nicolas Schier , Masahiro Yamada , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v11 1/2] arm64: Add BOOT_TARGETS variable Date: Thu, 14 Mar 2024 17:26:58 +1300 Message-Id: <20240314042659.232142-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240314042659.232142-1-sjg@chromium.org> References: <20240314042659.232142-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240313_212829_111994_474AB662 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- (no changes since v7) Changes in v7: - Drop the kbuild tag Changes in v6: - Drop the unwanted .gz suffix arch/arm64/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 0e075d3c546b..1217d97998ac 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -154,6 +154,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a # Default target when executing plain make boot := arch/arm64/boot +BOOT_TARGETS := Image vmlinuz.efi + +PHONY += $(BOOT_TARGETS) + ifeq ($(CONFIG_EFI_ZBOOT),) KBUILD_IMAGE := $(boot)/Image.gz else @@ -163,7 +167,7 @@ endif all: $(notdir $(KBUILD_IMAGE)) vmlinuz.efi: Image -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image