From patchwork Thu Nov 30 20:33:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 172108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp667993vqy; Thu, 30 Nov 2023 12:34:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8Oikzdghd8NrMZVtlyTN2QsT60PXUaHt3pQ1IKDrYkXmZDnySJFVwPFceaCnfwvSNCXRW X-Received: by 2002:a05:6870:6b91:b0:1fa:1d24:431f with SMTP id ms17-20020a0568706b9100b001fa1d24431fmr27870450oab.47.1701376455101; Thu, 30 Nov 2023 12:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701376455; cv=none; d=google.com; s=arc-20160816; b=NxG0AwZyULyPy6PoHYRTuiWkDoF0tsbm2n47WubkZu+jRZ6aO7anHz6xjZRF4EcfA0 AA4ndHc8D8kWNQZtu80qzbL/PbBk2t9sVbTJ5LRzBTQfdjgcC/4LfiDZorqnN5JrqV53 tNrP09xW71VRIb3BInZx+k5TgBHJrdqsViqLxQ0mTxRhRfKUhv6LLS5VJTiFsjHA81NW 8FLGhFI3UWDYketTTThNisznEZtC6mClD1tSnB4tnBRvnsGR/FhX0dvj5BKsvfJGoyJ1 XV72FzRzLDJQ1Eevwux+UwqifL3kaDYyJQy9Dd6c9oqeEszc9qNTf5+5HMl7c3Xb9q5d 1y4Q== 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 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b4-20020a6541c4000000b00557531eafb0si1920892pgq.559.2023.11.30.12.34.14 (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 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; 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 2620:137:e000::3:7 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 0E3DE804E735; Thu, 30 Nov 2023 12:34:14 -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 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:14 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784022517465851666 X-GMAIL-MSGID: 1784022517465851666 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