From patchwork Fri Feb 2 17:30:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13543184 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 3FCBFC48291 for ; Fri, 2 Feb 2024 17:31:02 +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=hGFygaMjewxxeKE5/dIo5CIblMfKlQJNOnzcvacTpQA=; b=4OwWKUnaLs5Rar Phq1qYxcybfRZHNwvvCe0cc+KpAv/S8E4Qe+iEjX9Tu9+4QLBejawU9VnFQ/Mz6dapdJfJUzwguLI B0tXcN5i1CUXD7vdsCLf6MuRv2ut2EHPxuxi55JjY8/pEl9g+KAN3X7gQmX46JZ8F6om1VwV3urB5 Ytzt5ve50qFDC28a9bARfyq76Ggg5Gn9yJNZOZaNuw8skiBzkp57ZDCP2WhOtVIzX+a31RW5TBXJy cG7UTNGNYCdoaxPVd1KWlt2BDrJVByv5TH0IBrwmURzy7HF9VL3GBTQ9cdQCxbtE6ALDWqr+b/mpJ veQqO/en/vm4pNy8d2SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxNI-0000000Cb3w-32aF; Fri, 02 Feb 2024 17:30:48 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxNE-0000000Cb1O-1b6i for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2024 17:30:46 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a3122b70439so324606566b.3 for ; Fri, 02 Feb 2024 09:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706895041; x=1707499841; 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=Tzgmnc/dVe67zqThKg2HRZiMqYk93YXXRdjM9PXNfFY=; b=DHsQMzTvnn2S/2QP5Y9mIq9wE8Kfm9jWp8FGLI7Q9yMyxhE0KE7FcyOrDP3yRjS06h a5DT6IT4KanUCS1KAxSGl/8CnMVXvXZllnbwAIZZeyLOrhrVI6COeo9+xwY0PDCEzXlU 73dEx1rn9b6b654Vxgq9gKj/7UWtq7Myqu578= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706895041; x=1707499841; 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=Tzgmnc/dVe67zqThKg2HRZiMqYk93YXXRdjM9PXNfFY=; b=EmAaj917x32LNnMgFN3OxP/eFkAA9Jia7mn+lg3jJ/B9kps1xdEP/sdrCRlzqXpf+/ spdAZfYAb86eTTdgLk5c2U7s073HOHzjq/W/ac0C35TJRqqLPEPOhpj/rV30lXhHxHvd M7shpQYTGOm1tjQgU3nGXB//JojancmBeQoExrpMg03AvzfEWzfVDhH/TmJbUJXqXdk5 mMdkzNbMX/UnAYx7pzY7wu0KtvMa2TnW8Epxxuq0+kuRVYJryuztcQ18hbgM0uPKPseC OdzJx4Cf3NQoXPZAtf3/fXvzZ4PThP1bPEQIxpH0T8IFrA/nvj2wmWS3MMufrX1sX8Ln SNBg== X-Gm-Message-State: AOJu0YyFhsmyrpJt8Ztcm9aPUC+0kN8vdidJ4FrvUWlpna5D7h8Lz3ar MSUOiDgWdoE1aLBkohKnyOW4Lw7WRLeG8HzZXuC5UCDaMSsA/aJJIZEJlYLxrDiBB8NjvMSJiEH mGeoa X-Google-Smtp-Source: AGHT+IHP/5ZRaiYDK4PC6NOpbhF4S/tt6Owof3FS9hi+3Z07dQE03DFVssqBWWiemWc6kEze73Kx1g== X-Received: by 2002:a17:906:3953:b0:a36:bc20:9a40 with SMTP id g19-20020a170906395300b00a36bc209a40mr4037025eje.48.1706895041195; Fri, 02 Feb 2024 09:30:41 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVB+aeDQCmsjLIJCF1+hLEAB2MNuxDgtEcELXJAQrzVS+FKMfLPsHVNuRO0/x/w2ifw58p98oInEOeEGBFF/BoteWFKMfzmLbWwwF+yXGN5t8EZcLqc2POFH42h1uQwwSuLnVaQdpOEivnGT6yndjNtKffsMy/xOY63No5NoFBQA5+/AIROegXmnUIb/JrIbajw2npi4/Iw43KUERPlznK5KkPo5ADrHLBagAy8HrwKygw= Received: from chromium.org (66.224-78-194.adsl-static.isp.belgacom.be. [194.78.224.66]) by smtp.gmail.com with ESMTPSA id hd34-20020a17090796a200b00a36f314daa6sm1083392ejc.46.2024.02.02.09.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:30:40 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Ahmad Fatoum , Masahiro Yamada , Nicolas Schier , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v10 1/2] arm64: Add BOOT_TARGETS variable Date: Fri, 2 Feb 2024 10:30:33 -0700 Message-Id: <20240202173034.221790-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240202173034.221790-1-sjg@chromium.org> References: <20240202173034.221790-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240202_093044_468294_C8E4E7E1 X-CRM114-Status: GOOD ( 11.11 ) 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 47ecc4cff9d2..83cd2b7234b9 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