From patchwork Sat Dec 2 03:54:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13476773 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 4B36CC10DC3 for ; Sat, 2 Dec 2023 03:55:58 +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=iEJYIm7BVJ0OT5 6cy2rZ0O5t1kA04r8Zp+s+Blvgm4QLDkLMxYnIP5taFPqU1W7gfalBtqjfYLTDSZHPhwAm35hnMpl i+5twXWG4SsxleeoUDrMJP6AV124Ac5I1K3Oj270nyKf6lvTzqeNfT1t0MxwvVEYF4lJgi/6eiUpc GN3S8VkN09/bTwqqY0q0eQvI8MEZZ2yz2F+3/4catPPiXec+tqRzJapVZgUd6B1IbdDhS5yddPBU7 jhZxBKKyVqxVtcFTuaYPsaL7CH/u3RRI0XIZzsbp4kFqWFDR6teQmsOKdz8kq16ZhfSOyOPFF5gI0 FQYYLzHEVNlt8fMi2nog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9H6K-00F7KG-1x; Sat, 02 Dec 2023 03:55:32 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9H6H-00F7Ie-1T for linux-arm-kernel@lists.infradead.org; Sat, 02 Dec 2023 03:55:30 +0000 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3b88f2a37deso1003153b6e.0 for ; Fri, 01 Dec 2023 19:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701489328; x=1702094128; 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=IbTDwQwGNSV5x7Fye2Xr2yxzmfDbPq0H0b4+7z7dutN5y6jgCbk6x+n6mWN/vWb4Df MubKyeqLQ/8V8dnPSi4QC9wz06sR2aiybU6O+9O82yT1JaTS0EpKMc2zqWut1oAaQhL1 ajr7fzjch+28ttFbuIZ0dwtUY3Q/l8F3wMBnA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701489328; x=1702094128; 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=Y+yMdWyB9rtEhyfj14VYj59wGKVUpJlvVNj+Q1qvucZm/NVAcWtGiEtXvNxdun837i N8g1iu8wCoPp2JJE4o8IAa8EXtdFRxeLqD7Iz4okZdW1gqwL9XjzyAJ2FfkC7omWKM0K T5A4daDe5Re+gFmYAt5rd9POlEuasROQ27EHIJpxaTElfoAh8iNvMZj9nX0o4rmkNr7t 7Lb9u1ESALsws5TiO1iSy9DpWEvnJYz3K+kNBCnTHIifKmJpmzDheahLYbAj2nccwOwf ZDipE1e42EwWL3p4sLSvZ9e0tZlNG+Ir+YGJ9NYB00V2hyGIpKYKzdzJqicIEXw8JxfP OadA== X-Gm-Message-State: AOJu0YzMzfOm1OuL9eiYVZpOjGpEVTg1e1OpmM02wj9zaJQGSU291GAt 3qNE2G7cM/w05NiYBDxs5Hu4UdTgXtMZ6VwXmaE1cg== X-Google-Smtp-Source: AGHT+IFgoGP3RdjYMguEz+gFvB+CJ/dknLHJUw0d0IBBZ00hhH7Fobb6d/sWCE0AymKAln1gR9YdLA== X-Received: by 2002:a05:6808:1506:b0:3b8:b063:504c with SMTP id u6-20020a056808150600b003b8b063504cmr850392oiw.77.1701489328310; Fri, 01 Dec 2023 19:55:28 -0800 (PST) Received: from sjg1.roam.corp.google.com ([202.144.206.254]) by smtp.gmail.com with ESMTPSA id t7-20020a62d147000000b006cb60b188bdsm3866565pfl.196.2023.12.01.19.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 19:55:28 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Ahmad Fatoum , U-Boot Mailing List , Nicolas Schier , Tom Rini , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v9 1/2] arm64: Add BOOT_TARGETS variable Date: Fri, 1 Dec 2023 20:54:41 -0700 Message-ID: <20231202035511.487946-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231202035511.487946-1-sjg@chromium.org> References: <20231202035511.487946-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231201_195529_493215_DD5E3C9A X-CRM114-Status: GOOD ( 10.90 ) 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 Reviewed-by: Nicolas Schier --- (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