Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp244812rdh; Thu, 26 Oct 2023 00:28:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEM2goU1d023L6rn3ucc8UBafAgtfgpzFXn9Ws5O+klZVgwid8UgvPuEzpKDy+DXhLOuKqd X-Received: by 2002:a67:e0c7:0:b0:44e:96aa:e445 with SMTP id m7-20020a67e0c7000000b0044e96aae445mr12342977vsl.29.1698305288391; Thu, 26 Oct 2023 00:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698305288; cv=none; d=google.com; s=arc-20160816; b=bJEfJ7OStnceXlj5JNBhlT4/3dkopDJefDYhz9EyB/+2yhkYz7m4gM7AvJKncmMN3a qgwfMRA60HXI57hzQpI8ABEf2h+7zQvj8NBR7kOWX4URnxu+yhwI9jtm/dmAVoKFuPlu vCvS0F/hxjAad1UsFEeANWvh9cGalLCcFTjLGu96mMaJ1zvRdvrI4NKWoYP/3FgmVfBn IvUDfcqqUhOTx9gmYrMby4knSG+nqPGDAdhsHQEV9zgVU7kpqYWBjqsED+8g59V0QQZB ytUEpcdSxYQ2nnijbJrhDqDR/yhin58bDYN6/9w0+YTZ0mHiz2xbO7fhYPXN25CzDLF6 piKA== 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 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p4-20020a056902114400b00d9a49bb3ce6si17322141ybu.487.2023.10.26.00.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:28:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; 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 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 94EC381AA51B; Thu, 26 Oct 2023 00:28:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbjJZH16 (ORCPT + 99 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 00:28:05 -0700 (PDT) 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 -- 2.42.0.758.gaed0368e0e-goog