From patchwork Thu Oct 26 07:26:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 158427 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp487044vqb; Thu, 26 Oct 2023 00:28:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXHCeDcL/LqL/ToDU0Pi4LpHgRdxXhulvns2XbylW5t5akhhl6NrDW17Wk0yMQpjM+0ETc X-Received: by 2002:a81:ae5f:0:b0:5ae:f1a3:dde1 with SMTP id g31-20020a81ae5f000000b005aef1a3dde1mr1000140ywk.34.1698305298215; Thu, 26 Oct 2023 00:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698305298; cv=none; d=google.com; s=arc-20160816; b=ImM+3xphavI7xqxOJyT9J7l2EibNxBXWBynL1SJ/qLhowUWS+qxjNt7sx8DuHSlhOt E9SIF2sZ26Lhow9PXTqkZamxVzRKBUp3PHBkzUIxkUZkH1cxMZtDge5pnds7el6LXJ79 A/fSdriJII83biTJdVimi/r8Ig/Xe5KWv/i53/gEmeuUP3NkKZwWcznpwGvgCWdOVUNk +3bKM5w3UTqlFfiZKDUttHtjF/ANZmWZKhxVu47+qP/R3fog8PcV4QJGo2G5fmgD4tSr +Aq+MH+PNsTf3/W6KT6k14jnhwWxVCzfoFNVUujo+V72JiS/5kdrLEvmNIshy4VxkNw+ zueg== 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=j5HROyknCuzezfPnKKu8GDq6Ak0A1oqAWU9OMPRzgBc=; fh=1K11mxcBqu82jKBYVbB5Frp32cKCZ51GwjRtRwGLGw4=; b=D9MwcnDT2I1q05VGDGyAvuceAvWdbmHmmqZR8dUeyyw4sR7LPGSi1/vGvucIEqoidq VtwF2osRS/oPwS/HRwphH7Pqr4J8TOpw84Jk2FQOzLJszmb9bPlc4kr+3/LwEjLErEZ7 wLzmQhjWD3yPXZ1EyaCxKu+GPoLSTCRV3A2mVi3V8eyZXDXZ/X7QzG+mb5NhGHaWB1Wx hvtSkbdVi5K1jieiuAi+NkGykl7myHLJ660FMACmfvL9eQK+BYgAYd0J8sEAQbuQ4v5e UGFg8zohsj4gHeL6sAaXBpXehz8l4eTAL+svEXgSi2GDqLeperdRv0BWXpbHYoziAnYV r5Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eOSg+QfQ; 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 a135-20020a0dd88d000000b005a7a7313354si14661378ywe.113.2023.10.26.00.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:28:18 -0700 (PDT) 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=eOSg+QfQ; 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 0BD9A81D773C; Thu, 26 Oct 2023 00:28:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344429AbjJZH16 (ORCPT + 26 others); Thu, 26 Oct 2023 03:27:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233257AbjJZH1y (ORCPT ); Thu, 26 Oct 2023 03:27:54 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638F219F for ; Thu, 26 Oct 2023 00:27:52 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c87a85332bso4731245ad.2 for ; Thu, 26 Oct 2023 00:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698305272; x=1698910072; 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=j5HROyknCuzezfPnKKu8GDq6Ak0A1oqAWU9OMPRzgBc=; b=eOSg+QfQnvK4iJwflaHilWiUIJOir2Za0dxYXpG65BaQ1bl371yS2Rqg4PFrxcdiO/ hTwzKBcTreEPC+o+vppNNzKcoj3FwuWS9SnxyeqdkCiMdpxTBgY1gfVPioWL9Fu12Z0p Eag0LMHlsA3nPb5C0JeiHlUCoH1PQg0UJR/70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698305272; x=1698910072; 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=j5HROyknCuzezfPnKKu8GDq6Ak0A1oqAWU9OMPRzgBc=; b=t50qCiiLxOomqK/y7aBokEr9Io5O6FeOQOVzmroQirI9Ztr/C0/4Ld/JwQu8TmdRwW WRYpZzbZ6r74kCYLBSj25sJ0G3Kk9yHfaQoUwEcbtc47lNgCO3+Jvg16/Hub73edZ7wV MhxKAxljCdHuW5xjT6V70LrYX6XJYY0RrQI12tuYXbw1jH+ZwFA1itfIZjE9Rr+pUwE+ QFsLKV+AF6CvPmlBKhPoNEXNVr90BeNM3QnPyrzD2hJghO4tsnA9p7DrJTCmBrroVShk W57byoSb4ala6hc7BEA5o+fV3q/09mTr5ZgaHa5RmiqdyTBfBsC3SjI/wesfLiWP1c5m XkTg== X-Gm-Message-State: AOJu0YyP3JokUBcVmkk19pRm5eVC2NT60ggrhJPV4BGWbOQGyGo644UG Ulpt9/rSeeax70mAwloAx0DR2X8scX3BhHqgOyh1mg== X-Received: by 2002:a17:903:200d:b0:1ca:754a:692e with SMTP id s13-20020a170903200d00b001ca754a692emr15633418pla.30.1698305271862; Thu, 26 Oct 2023 00:27:51 -0700 (PDT) Received: from sjg1.roam.corp.google.com ([202.144.206.130]) by smtp.gmail.com with ESMTPSA id n17-20020a170902e55100b001b7cbc5871csm10294023plf.53.2023.10.26.00.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:27:51 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] kbuild: arm64: Add BOOT_TARGETS variable Date: Thu, 26 Oct 2023 20:26:24 +1300 Message-ID: <20231026072628.4115527-3-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog In-Reply-To: <20231026072628.4115527-1-sjg@chromium.org> References: <20231026072628.4115527-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_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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, 26 Oct 2023 00:28:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780802176488703826 X-GMAIL-MSGID: 1780802176488703826 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 --- arch/arm64/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 4bd85cc0d32b..7b77b63e978f 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