From patchwork Tue Nov 7 13:25:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 162460 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp231800vqo; Tue, 7 Nov 2023 05:27:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0B8RoFEvMDMR/Uv03KM+Xm8FS+XHEpfqp2B9AZDYfu+xyooHxjeyyPiDS8n+dsVQogoXW X-Received: by 2002:a05:6a21:4881:b0:181:15:5755 with SMTP id av1-20020a056a21488100b0018100155755mr24139049pzc.56.1699363641110; Tue, 07 Nov 2023 05:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699363641; cv=none; d=google.com; s=arc-20160816; b=R/i63fVWYT1P+VhKQzcEuysNTSa0ZClwb016KY2LhmLFS3fbHA5WrVpq72WN6IqrGO wApzDXWnHuA/Ttnwfo3Ycu4iV+4q8XMhh+4ZpuVbTTSmGySItH7vi7hPqwJL2l3zo2oN F+9XRk5hANEW9BfRE6oDPPbTM7n/gFTrpLeCibbmfpQxWE4uOdssPahtIQr0bMn5e+rZ KFVhQQkkrQrq+w5OoTZ1dyTU0NGBKAwaxlJb5m58QbnaaOEJpQVF1gYZ32oOinRBaul6 NCZbZpPZv9DVXDFYpFaVThtaUtcxmbkgQ0YD893qmzpLr+RTxkQ6utNHIEua6NI2+Zi9 iSbw== 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=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; fh=+2WA7Grc9VRiVAdce+KBOM2OHH/h6JCb5mkdcbEwcg4=; b=xGlhiiCLbmK10vQe54pjlFwxQg2g1HuUntJiZxK18E5U+cIrAnPUNQ8t03r7mgM4Lq Iomo7oae46//KBOOFLW91wY3hnwIgJT7PwvlW3LRDVqk9jgxWr2U0xXQz7QvmV4JeRaF szaHjVajivWs9aOS9iqBB5nrJexUFF1pU+jmCZ5qxKD3CbxSYYe1rq97uC4KH89qlhR2 4MqPUEPi8FDBxY9GnA2VvTSLjN0VTG6a0hOU1SpY1WHrMlxgAqFNy0m81uN/HFjKhdGa HRmSjU1xMstw+IG2Okmy1bbNObEzjbp9BeE2DRCSYSCvZ0KmiX05ZCuywsMX+vCKH8mJ idFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kHusprIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x14-20020a170902ec8e00b001cc407388a8si12029341plg.337.2023.11.07.05.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 05:27:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kHusprIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id E9D6F80264BE; Tue, 7 Nov 2023 05:27:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234527AbjKGN0j (ORCPT + 32 others); Tue, 7 Nov 2023 08:26:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234167AbjKGN0f (ORCPT ); Tue, 7 Nov 2023 08:26:35 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246529E for ; Tue, 7 Nov 2023 05:26:32 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7a94a3b0a49so204474239f.2 for ; Tue, 07 Nov 2023 05:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699363591; x=1699968391; 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=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; b=kHusprIMaj5aHX467GCbunc3iTkxfEPkGHGYqIcJgrDBba86R4LYxPwqiLmhfME2uo BGFK53qsVTLyeV/oCUwbCp7uSINAhFybNPtG0AIR/wSPd1KOneogMi6jzYfFXyB6HHBP I1m6MkhtsQCOp2VxgRx4MO5GEZfSf/lMUuC2g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699363591; x=1699968391; 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=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; b=WASg/rzq3wJ+MhKut7KXGGnvqnR4Pl/StzQ92Ms6rbJspVqNLpx7aPv0YJcuYk2vf2 7/G6UYGLzJp8r4Hdrn73RkQROQ1NrAHuAY89wGQCt6vpJzTtgqC9+POU0DZ99OizFLtB VjgicTJCMCwGmZdHBR84VIQRfUwaBClEolij4xyR+2iSU8WYsWZu1WiCqFe8d2xYBqfa +GKcAHLZcbbzd6FBghWyPoe8Rh8dni//LJwbn1kSdFL3MAgEZxFExJ9yerpzu180AArJ jHzI5rT/r1zIIjdQiNf5SYrYAMtnUrvWnP5/KiqM94AdR8B9R1QBK8L7n7GPqpzqTjwg TO4w== X-Gm-Message-State: AOJu0Yz7px3NWDZ+s0Y7Qmm03rzzXL+mpreElOC5pCPnBf8fcsQM4KRy YEzyvJfXZCfFbShWM5EB3rn99Q== X-Received: by 2002:a05:6e02:1847:b0:359:4199:1fe4 with SMTP id b7-20020a056e02184700b0035941991fe4mr3384295ilv.10.1699363591508; Tue, 07 Nov 2023 05:26:31 -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 db8-20020a056e023d0800b003596056a051sm3141589ilb.71.2023.11.07.05.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 05:26:31 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] kbuild: arm64: Add BOOT_TARGETS variable Date: Tue, 7 Nov 2023 06:25:53 -0700 Message-ID: <20231107132619.34062-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog In-Reply-To: <20231107132619.34062-1-sjg@chromium.org> References: <20231107132619.34062-1-sjg@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 07 Nov 2023 05:27:19 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781911929288716620 X-GMAIL-MSGID: 1781911929288716620 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 v1) 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