From patchwork Sat Nov 11 00:28:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13452870 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 EF3A0C4167D for ; Sat, 11 Nov 2023 00:30:07 +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=ESxPxX6uuW5AQb7TMyIc/n+wmVdw9XyBUcwsZYyZbdc=; b=tItpGcs1PaIpEq fDJ3fCZKrMUb1iUwmQl89jOh0Z7x9LS5IeYtS6SRk/ktf+TCJkV+tmt2QG/iOPcPrlM7pzCIp9P4T vbgv7Ex2ublHi++oW5iN/kJupatWo/JA0G6koGjT/kaZggf41N8kSKbp35NbIEOfgM3EqP+53SdKc +cb5iGx4bzcpGm09z7Gyzk8wIT9WSfp837bY4wcMEVl3xhno/U5REs7W3S1UiXgDMyTaTnstzNQVm zGHXrMXILz4Z0c4L/fsQK+g1aHvwPKJ2j5KLkYEsLNK00+KdmHRqfGCGT9jKfLxSD/001D/6DjObU yK0KDxhDiG7jyQAWbPbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1bsY-009j8s-1g; Sat, 11 Nov 2023 00:29:38 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1bsV-009j7v-05 for linux-arm-kernel@lists.infradead.org; Sat, 11 Nov 2023 00:29:36 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-66cfd35f595so14968916d6.2 for ; Fri, 10 Nov 2023 16:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699662573; x=1700267373; 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=et5CNEbbpEZc7/GZDGct9Q6Ku2JLjZggspOXrOUtq84=; b=D/5KM0mN77iMm35K5/hf37SFwgsdZnKjysOe9lJfqsBEoI4DMej/6aFRot3B3Zaj3f Qxn94zXlgyU11Nc3apo/8hHK3x9rfu3yMpB30fmzYpe14wmbuE93g2/HuaTGlH437XrS X3CcCVKszFUwz6fNrRiMXRXCEEHRi1l973JOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699662573; x=1700267373; 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=et5CNEbbpEZc7/GZDGct9Q6Ku2JLjZggspOXrOUtq84=; b=D3ITvMQP16q0jOX2ifXSQULZeOI2BG69bv3okFE4P9hbrhFvUrXh+SKXTFWiM7KBBK SpaVBinNqNmUtvNsoC3dNqbPcp7lxvdEsk5s91npTu/yMdT7vxmSZUi3GbtljiDO6qc6 jNTDhmxJo5tmMcJgcIq5O2gagMfRpxaYQaFRG5e3OjJdf2CghXZkKmbERKkqNg52RXNx XqQYrC2Ugq5AphmNWPdRbKHaKGPAhAVj1Y6hR2Aa3SlK3Ik5hRca5BkV1cyQMBAHmDJr 1sKOiAxB9C12zsT53We7S2TLcGkjIc07QwleZyxRD1KJWPHEmWZox2Ljnlt2/p0DaYiU Ubgg== X-Gm-Message-State: AOJu0YzV2O9z0hJtracwmdLOqiRKqHSiEQ1M7rvcUJsdspSmOhY/dS+o hQTCeoDQqRDgWazFbNGcZazzWB9R+sGwLNOjAwnDIw== X-Google-Smtp-Source: AGHT+IEN8beePUf5tFQkONDRQomBUyxK3TsSyakryn92MhWDO9HPDNzsR0zDFHQT0xvjn7EW56ku0Q== X-Received: by 2002:ad4:45b4:0:b0:658:1eec:408a with SMTP id y20-20020ad445b4000000b006581eec408amr734218qvu.40.1699662573056; Fri, 10 Nov 2023 16:29:33 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5104:5a27:f95d:21d1]) by smtp.gmail.com with ESMTPSA id l16-20020a056214029000b00677adcfd261sm55898qvv.89.2023.11.10.16.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 16:29:32 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: lkml , Tom Rini , Masahiro Yamada , U-Boot Mailing List , Simon Glass , Catalin Marinas , Will Deacon Subject: [PATCH v5 1/3] kbuild: arm64: Add BOOT_TARGETS variable Date: Fri, 10 Nov 2023 17:28:00 -0700 Message-ID: <20231111002851.1293891-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog In-Reply-To: <20231111002851.1293891-1-sjg@chromium.org> References: <20231111002851.1293891-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231110_162935_062546_21A5C3DE X-CRM114-Status: GOOD ( 10.58 ) 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 v1) arch/arm64/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 2d49aea0ff67..cd9bca2358d2 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.gz vmlinuz.efi + +PHONY += $(BOOT_TARGETS) + ifeq ($(CONFIG_EFI_ZBOOT),) KBUILD_IMAGE := $(boot)/Image.gz else @@ -159,7 +163,7 @@ endif all: $(notdir $(KBUILD_IMAGE)) -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image