From patchwork Sun Nov 19 15:01:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13460475 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 270E4C5AE5B for ; Sun, 19 Nov 2023 15:03:11 +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=GG0uR8gX+wxdQF+8npG4q+zpQFGJHZbZJwTmUHHb35A=; b=zJnKg7c5nQ09hC a7Z3vyL+n2JqzXh4vXIEykFM+uvRG8WSFLUlCDVA4zMX9iOJ2FnGATy+btFfbfkajY7E1Jo2S9qDK L/yWyfpCL4xQ+Dfv34+my+pIwVyePQGFLbxiFJ4hvvuKZJThLYq6MdzGNP7JFYZo0PTB58X7Lwz7b XYuyR7ZKKroFyRMN/yeNaNNypIkZa3JnlypFtfTxzp6m5dxn7QMtoaE5XBCchY5IyxDIggORQNwMe mAg93waUo5MGMn/7y6AVPupN58rJdGth/mhVcplNW/0LXW9kymKOhAduEssiR2m5ewOZiLRk4si7U 6MpWUKNiM08XVJ4NfUoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4jJq-00AJTc-2S; Sun, 19 Nov 2023 15:02:42 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4jJk-00AJRW-1d for linux-arm-kernel@lists.infradead.org; Sun, 19 Nov 2023 15:02:37 +0000 Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-7b09035b850so93131139f.3 for ; Sun, 19 Nov 2023 07:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700406155; x=1701010955; 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=K19uaRHfUiZC5UdhpBQfctYu4740M4BNVOmdBbosPVVwDXUgdY1WsYS/1Hy7J+cskQ iYfK9LzXw5zwb60AHTNMCrSyjXkBmAWKk5hjUHIZZUhYKZ6JhKXc4HttbPggWxWQvgzT AhrSt1ai7uSiGFU/03Smzve52TApc13QNqIQ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700406155; x=1701010955; 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=RfD+vaOOfo4e5PPw2l0lEUHzbNGm9tAZ28meuxgLMyS0exoZWb4bo/MGQvLmgZ4iKK KFEDfMTue59J4v0p5pIeoLwwX3fbRjEd9fmF6Gc3brWGQ0JyXvUKQP6vYQPrP17RoG3m 64qxmKEHqmINw5f1GidVsFs2bRoayY++2Xn9TIPVziUA4t9EKTdPXA2rU9ldvbTTZ9k9 RZdrdxSWa3plTnNByDzOeurMuJ+pk4AHd7t7JGHftJqQl9+YWypbKk3sqtfluaWo+RQd NLLOe8B9z5s2wIwvUCnZM78awE3lISC2KME2duBdvVcuDl7A3kIhBclNxABNs+GXYgO5 Q67w== X-Gm-Message-State: AOJu0YwxH2F/pN61iNbLjrFobXRqVFPUJQdT35wbAJZSZw24lMIJIL+I zIrtreYzr5zk/sokkLF7H1kaJB9q0ZX/IcULfR6HIg== X-Google-Smtp-Source: AGHT+IEx7n9lWgQ5ZHDpFV/rohuH4tUzvXPoC9/I4DFizrOn2jcqxdjt/zGZCjyAWhAQMdYpGaWrNQ== X-Received: by 2002:a05:6602:c7:b0:79a:b667:4e97 with SMTP id z7-20020a05660200c700b0079ab6674e97mr5843610ioe.0.1700406155245; Sun, 19 Nov 2023 07:02:35 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id w24-20020a056638379800b004665bec29d1sm79923jal.128.2023.11.19.07.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 07:02:35 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Masahiro Yamada , Tom Rini , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] kbuild: arm64: Add BOOT_TARGETS variable Date: Sun, 19 Nov 2023 08:01:14 -0700 Message-ID: <20231119150229.634424-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231119150229.634424-1-sjg@chromium.org> References: <20231119150229.634424-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231119_070236_540826_AE0349A7 X-CRM114-Status: GOOD ( 11.27 ) 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 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 4bd85cc0d32b..ae0c5ee8c78b 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)) -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image