Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp587497rdb; Thu, 30 Nov 2023 12:34:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+Dvlu+5q+/JQZCRusiAvp+4skM0+m1K2Kzzh57Lv7S0fH1CNJTKcph2Y3B0tySRc9YBwX X-Received: by 2002:a05:6358:7e0d:b0:16d:fc28:6ef4 with SMTP id o13-20020a0563587e0d00b0016dfc286ef4mr28546068rwm.25.1701376456029; Thu, 30 Nov 2023 12:34:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701376455; cv=none; d=google.com; s=arc-20160816; b=IONYwtrG64nhVF79xzX0NFew1OfbCy+EhPJIYJ9CKF8ofaj0RePFjy50Et0vdHTvip Kt5c5v3jz8lEmTBz0EwKkA5+VqLkSZe9ObvHT/mEeeVgASeVQZpyDPdQYNW3ewlC/WEB jnGLY1LZA+gfTPXOCevBNyqK2vY62Lg7sCm95iKjd6V7I6n0vOTx3Oxtbq6XMxp+0gTc YMnOjOsgAxCNH4BwDWmRbzYHCfvnl0rY2rfhNMjo4msOtnhQs5kDyplUl5ANTbQDzUxQ hHcjxqNucZ/+N2Bp46qUjIx9oRWLjUQJadnmF2Qco4S3LAobmZHRSdsoUh3k29Ss5K/j 5TCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sgkNVr637iddP10kktErFCRYoJ7YouXjWqvHwiDeUcs=; fh=DbLGdt+JIdplE2PCSag1WTnNhHhfFmZ07HeFh4cFpKg=; b=kYkRwM4koXQXt7Yq6RFVPUBvPfcPptDua9MdddFEtMdEyajXlMM2g7ZcL9qpe6LwMb Ae0Cll/CbX+hBtCRpvHC1wAUqG+JYwAuxJSeapo2Gx8mr7Puknti5sJfZ7/EjhEutQs8 U+mVIO45bd4nfbhG6BZK6mWUmlPt6xKWgGiE/nrIxQ9uT1o/v1TxmlwbOSBkzmWqs7QV HjRQTnhmLT0YSpuK1ypP14xkn3WjrG69BHp4zsUlxkEdY1WxStPGoWnc44nRkLNrNE/K 5/Zv/54VKerBeZQnzxQAAXvD0tq7WEZ3B4XTbO/D6+IgqRiviDHMRBLTiGa+K5ViUgHk sJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PMYS0Hwf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g14-20020a63564e000000b005bda77217eesi1957341pgm.209.2023.11.30.12.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PMYS0Hwf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 157398047787; Thu, 30 Nov 2023 12:34:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376706AbjK3UeD (ORCPT + 99 others); Thu, 30 Nov 2023 15:34:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376345AbjK3UeC (ORCPT ); Thu, 30 Nov 2023 15:34:02 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E56A110E6 for ; Thu, 30 Nov 2023 12:34:08 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-35c18e55633so4146965ab.2 for ; Thu, 30 Nov 2023 12:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701376448; x=1701981248; darn=vger.kernel.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=PMYS0HwfzKU65GsBpCN6x+25XDvfJcRAYk3azA12qAsUa0I6PesBXrIGGs894X5Ap0 xcMjuIjlHGGa9LP3Al/eLO+NWKQDJx/kK9uKUZRF0kuoAlPtThNUq51yag7cNIUqTqlt cdP/vunitgRlsCtM7k/g0PBBoXDicQg/wOj5k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376448; x=1701981248; 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=rGmdZ0Y2XwdIXbvrVs6gw34b61Gk4RxXrye7a4P5AuTDWDDZe7nfc0hlI3adJEr6FR S/U7zbT6e5XgNmtIUBGfwbw/wrN7IifOvPqooygapPY87qPAaM90Ap3nTIYEAkJMnAxG CDCXq1t5eayF+/v/mrh3i3tylkfbRMiX8KRiiwLmYXx5qZX5UsFcMODorDY6bIOyQJsP MKpaLvrR4yYbaipnmqyDTlstNHOQakMo/jObu2I6IBUrmPq1XP8jxpxnCm3fqBh5AN+d 3EBx5A076gTY5vf1f3hEbViB9UtupB8RLqyER1h1XsHGfZzBQjeBcKp7eBCWEJBJ+q1r Cl1A== X-Gm-Message-State: AOJu0YxwX0/jewsReI0S24AA+cgHFeMMITquLm8Eo+GmeOS50a37j1YO CUEWfxo8knlOE5LEPJbTvnnfhg== X-Received: by 2002:a05:6e02:1748:b0:35d:42e5:f751 with SMTP id y8-20020a056e02174800b0035d42e5f751mr3946346ill.15.1701376448283; Thu, 30 Nov 2023 12:34:08 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:d134:ced6:d34f:38a6]) by smtp.gmail.com with ESMTPSA id r21-20020a056638101500b004665c3f56ebsm484788jab.15.2023.11.30.12.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:07 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , lkml , Ahmad Fatoum , Nicolas Schier , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Will Deacon Subject: [PATCH v8 1/2] arm64: Add BOOT_TARGETS variable Date: Thu, 30 Nov 2023 13:33:54 -0700 Message-ID: <20231130203358.879796-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231130203358.879796-1-sjg@chromium.org> References: <20231130203358.879796-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 12:34:15 -0800 (PST) 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 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 -- 2.43.0.rc2.451.g8631bc7472-goog