From patchwork Thu Nov 30 20:33:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13475047 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 6D517C07CA9 for ; Thu, 30 Nov 2023 20:34:37 +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=2tXujMDre1YedX1VYR7eSg+hyl5DuuH51XRZlBymRMA=; b=M0JuHEHXLZLkpy O6dDhpeggJBbVeoMs4D4Td6B41oiEh7rquWlwJPd/ExBn2xioYuw2m7pKr1jMWAP8EgSRD3bjXuxO fO1i0D/4b+EAaqMPrNprQK4teDy9JDn/GFenTbRXA4/1dFf2TKuagbrEFLr8/k53tw5MhKtITXXib vebPnIh8IPqDm+RriDyy7S0RQ09raEcvkLFSVHXVVjWtAUEsI0zq/xR/ujspyVunWHQceZnW/t5fh Fr5MxZzNtkZ4lb0MZs9343h/6WTWzU+CnYYX0rhk86uuuV84WOREHCFOl1mVYdLTnkOxdUl/Ej22k XiagkTjATTyGeAIc2R/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8njg-00Brck-2g; Thu, 30 Nov 2023 20:34:12 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8nje-00BrbS-0Z for linux-arm-kernel@lists.infradead.org; Thu, 30 Nov 2023 20:34:11 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-35942cb9ef4so4114925ab.3 for ; Thu, 30 Nov 2023 12:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701376448; x=1701981248; 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=sgkNVr637iddP10kktErFCRYoJ7YouXjWqvHwiDeUcs=; b=D6TKuAOTKlwlAXEP06BO/KpH6P2aD4tqqdn+Q6wIEZTYAhLzaVgKYKaR2qrLBVrGUp zcGqZgo8UljHh1dpTk549juwgG2n8nhAro9aok5Cqq45M946l5SjGX8tXJ6WsKfiU/LJ zFdSZO9VY14LXB8F7QoWf5R4YCrcjVmRx6wcg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376448; x=1701981248; 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=sgkNVr637iddP10kktErFCRYoJ7YouXjWqvHwiDeUcs=; b=N3nfHP5jwRFaFF9ml7ysPXAHBo7m0WYyOKwl72OP86zud3hdijdx9epphh4KfI/HaQ o0M0OdwHak4ALipeqNZP4xeGHYajFR+aPT81TUHRLLU+vCjC3DVAPpFpwuN3HXFpAZo6 fc57iG19diTH6KdUB4X574UtsjwZ05+hdPhVTtQsxMZG/pA+VRey+TxEVvQOlIazpfy9 arzyFe/nlDxAZ8yUMwC4N2swOLfOo4wnLrMHPZG6cvQ39HZQoTn5IzLw5p4xyrs7SV4z Lt1XfUDvIc9r4EcsPSnJafdyFvRmTF28OzdrM9vwxgXBjMUWbnLzv0ycqeSnKssLhkOi hlLQ== X-Gm-Message-State: AOJu0Yy1S7165On/Sg+84pFL0ssSLuI8Rrc/2ppXbJcb7dqaV60G/55Q cIfau2+E8LOvMQBmce3536XSshPF213keHYuxT4= X-Google-Smtp-Source: AGHT+IH+ngzFDU9faV0d7Hcc2/3b486G+AlJvx/x6A8mnmzkSgzG/ZftC3rccgUkt+jcZs/DxZicRg== X-Received: by 2002:a05:6e02:1748:b0:35d:42e5:f751 with SMTP id y8-20020a056e02174800b0035d42e5f751mr3946346ill.15.1701376448283; Thu, 30 Nov 2023 12:34:08 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:d134:ced6:d34f:38a6]) by smtp.gmail.com with ESMTPSA id r21-20020a056638101500b004665c3f56ebsm484788jab.15.2023.11.30.12.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:07 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , lkml , Ahmad Fatoum , Nicolas Schier , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Will Deacon Subject: [PATCH v8 1/2] arm64: Add BOOT_TARGETS variable Date: Thu, 30 Nov 2023 13:33:54 -0700 Message-ID: <20231130203358.879796-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231130203358.879796-1-sjg@chromium.org> References: <20231130203358.879796-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_123410_209212_F53E61C6 X-CRM114-Status: GOOD ( 11.32 ) 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 9a2d3723cd0f..1bd4fae6e806 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -150,6 +150,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 @@ -159,7 +163,7 @@ endif all: $(notdir $(KBUILD_IMAGE)) vmlinuz.efi: Image -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image