From patchwork Wed Nov 29 17:21:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13473253 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 2752EC4167B for ; Wed, 29 Nov 2023 17:23:18 +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=ZD2Lt9CXFJWETrJr1pm/Wqh7ciYbfR2KEWhjAj1/pxw=; b=RN77T7dIcgd6Ph zfjlePrEAxWv16JBj0G9TeMBaqVWzzRJp+azGQM+MdBmCHCcI3KPKMZCYNb+iY+oBmiO7wP8Bubvi QFYf72+gJQdIZRA+Ehr2W3gryCjiUP126ecf6qW0afiio1gGAjgvX/Mtba1zHn+xGDFldPTDKTJVy Rr62ZKwlARACawZ4F5r6rncT6EaKa7LJbuZrJs2CXQHf13T2VZ4tzDAqKhHFJIJm9Jj+5BfpP/R5z kcMrwZbIIDjzFlOqCWUr5LKhfUPl/vunCfrno1Gef8YhYXqGrq1aOf+BnVjfvyPL/pOQseK+tVKvd e3F0L13uoGRCBAsiTOAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8OGz-008zfy-2N; Wed, 29 Nov 2023 17:22:53 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8OGx-008zeN-2I for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2023 17:22:52 +0000 Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-35cb5b21c41so14160915ab.1 for ; Wed, 29 Nov 2023 09:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701278569; x=1701883369; 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=7Y4u1Nj+AksGSx6UaBsaN0nYrI4rh/YV1H5l1JuASz8=; b=KHAOgyCvIBh4XH9eICcYmao3BNg8FJBVj/Kf6b8sQ1qzBHcrz/fOS0l2K7jK5Ujt2S PRUnr96KiVXxGtlE/4fEfX++q2aNB5UQ0PpnZ/aVNGZz5wKXO585fmVJD+RkGYBp8jlk k08lbiThL8MqUNYjA3MUheDlvyAJr61PwREac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701278569; x=1701883369; 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=7Y4u1Nj+AksGSx6UaBsaN0nYrI4rh/YV1H5l1JuASz8=; b=HazeATUNBs11nG3zPBTLb67RorVL4pE4cqrAlUdqUfipZMO8vzVh6ArujEToGFGaaE F6RCtjyZxxctlr/a3waUmFM2sb+HG9A3+docF94kNPuvjEAoTPX52aOrTaf3p4RF7daw TEJUHaxF4svU6FRH+7IODvisQOzx0iP0imBc7QF5HiY33ifIvPxc3XkeHRn2K1O3LY3S F8mcJSlC3HAk9gtG1TtJlWFCQ20+U/jDwToaroJultYd3BA3uPZ0IqaZK6Spu+1SSlGc Ea0lhA6I87jEdZ9qax6Uh0JPBHaxhABv9t+jPwA48NFZoUA2t7wa7tklWF9Okq9BSkkU CPWQ== X-Gm-Message-State: AOJu0YyCzk4LokUV2V58J6kyZgmVqIX6WEcHeTQO7mScz99usq0yF2WA h9c53fOujHYzkRVzn1Ns6sWCtAtEsfZpFnh0qPw= X-Google-Smtp-Source: AGHT+IGoKYqPmZAGwWLDW7tQod2JEp4OUoLYANKOnDLWolFNogzs1E68dUptxIsNKOqzFj5oWiR7Qw== X-Received: by 2002:a92:cc49:0:b0:35c:8738:7e52 with SMTP id t9-20020a92cc49000000b0035c87387e52mr17451545ilq.4.1701278569521; Wed, 29 Nov 2023 09:22:49 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:f4fd:5056:45a8:b749]) by smtp.gmail.com with ESMTPSA id di5-20020a056e021f8500b0035d2fc4ce47sm471212ilb.9.2023.11.29.09.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 09:22:49 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Tom Rini , lkml , U-Boot Mailing List , Simon Glass , Catalin Marinas , Will Deacon Subject: [PATCH v7 1/2] arm64: Add BOOT_TARGETS variable Date: Wed, 29 Nov 2023 10:21:52 -0700 Message-ID: <20231129172200.430674-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231129172200.430674-1-sjg@chromium.org> References: <20231129172200.430674-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231129_092251_743520_848A9E9B X-CRM114-Status: GOOD ( 11.15 ) 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 --- 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