Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1701512rdb; Sun, 19 Nov 2023 07:02:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0D4cJgs/ngPElVmZYsgJ7umJfvk60F3gWZ3IodQkLmDrkjuOrt/m1FdI5AWqe+afeP1D2 X-Received: by 2002:a05:6a20:a3a0:b0:18a:be:9ccc with SMTP id w32-20020a056a20a3a000b0018a00be9cccmr1283726pzk.1.1700406167544; Sun, 19 Nov 2023 07:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700406167; cv=none; d=google.com; s=arc-20160816; b=Hu3oa1rI72UckSIzC10oP6soFEsON6rn0r/boTibCGj906b/SCEgnq0Cpe1l+z6dxo 82C37GO/ekcLcs+pJyHM8f4b9sjAXxX3RMiBLxuw4vvRHoqCUsW2LmhNmfyRLWqq/Oat rV/qRfxZg1ObA2RwGEli4jxqp048TZu+BKbLfzX0cg6D3Aw3G902+X6BpxGnGZT/sJGr FmDpzBAYF/c9iDOos6dzjzVgVI3eHQPN/5eauhNGoMNPnHpXXI5MZZ2IvEZDsDQdwsBw VQFBmxo24S5RYq0PeIc6tOFXbyRsyjiX1B4mPm/KfteDAB7RfcJnCfPrbvWhjClerwYe ZKMw== 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; fh=I9F19W6FwrEFOVQV3GAc8CA0hld10c1mwo4fqXN+m8I=; b=TLF0xi7bJ55nfVDLaPal8uOMgdb2TDmTYDCnwrHRnJjgTqXZ6jdtaUCXhuRa1pljcG DM0XJfXV7TK532jzei+7zdjWJI6XcYYv4BPpYoO76oeIk8iM3ckgJBO2OcZ9+T8hPsmq ncol5miYFrbNrgjo5sbL/gjDKsyE9q8vHPrer6W7IGNtKkM3O8un32Hv3e6D0dMNCf72 Uw9q6zwyiNbqVdnsspKoms0iUH+45xAsuO0t46tbzlCZhbP6RhyYkGg4P09hxpzqMVrn OKL6DJE4S6bizP7Nejrs29SNNzsOd9A0tSLcYAaAyFogRSfOaBb85Kj7PUHkWo0GNs/V eI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KWGFHmne; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u127-20020a627985000000b006c4d3cd9132si6291342pfc.0.2023.11.19.07.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 07:02:47 -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=KWGFHmne; 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 924B08050FBB; Sun, 19 Nov 2023 07:02:46 -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 S230491AbjKSPCm (ORCPT + 99 others); Sun, 19 Nov 2023 10:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSPCk (ORCPT ); Sun, 19 Nov 2023 10:02:40 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7049E1 for ; Sun, 19 Nov 2023 07:02:35 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7aca968a063so152009839f.0 for ; Sun, 19 Nov 2023 07:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700406155; x=1701010955; 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=KWGFHmne20E8qkdoBvrTXcmVOr+EMQh/wLZj3+3175rh9yGgUtMzsy+KLNdsS23AqU wvWorwuD5Ak+nf9O9SmF8UhckoPbkoYEoU6sTm2P81O9XBGnXfpn+/u6trvfk4Wvk40U /ugulVeZtFPLkTYI6w7VaaxqAqTa15KB9R1XY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700406155; x=1701010955; 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=bDYfd5Ixf9xmjHEG2tzOjJsi8TkPIxTTbkQhXT1JkgTt+W1ssMZyIov2gOhhVlN8Rf A+PJ8+m8bZANxGXWEAuZiWiUf8eVJ+U6WRcp9HFk3Il5OoKSUo91/iFGNeU02G3a6nEC QIVc2iY9+kGSA398KB91ATfaYUBykZRVzkG8o7ce/9NL2uLGryvPygTd/EmkYqu7BEu2 npyULWPHjfih+90ZzZfXI2gknIB/kcG52mZp+CUsq2NyCxY/xb+TqwH/j4zNDNunEExu Kcs11adG3Q21hrRzZOcx6M0gCN5m55mGgSSjEkhBJ/PJOc4qqwwWcZDb7E16jLXYGeOz Jhbg== X-Gm-Message-State: AOJu0YzL5mgKF3SLRSqJnoM1P+q1n5Am8q+hW0cNTm1nG4QncQapJzCN Wud2ixcqxR+0PVDYdBHG28qfdA== X-Received: by 2002:a05:6602:c7:b0:79a:b667:4e97 with SMTP id z7-20020a05660200c700b0079ab6674e97mr5843610ioe.0.1700406155245; Sun, 19 Nov 2023 07:02:35 -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 w24-20020a056638379800b004665bec29d1sm79923jal.128.2023.11.19.07.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 07:02:35 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Masahiro Yamada , Tom Rini , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] kbuild: arm64: Add BOOT_TARGETS variable Date: Sun, 19 Nov 2023 08:01:14 -0700 Message-ID: <20231119150229.634424-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231119150229.634424-1-sjg@chromium.org> References: <20231119150229.634424-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]); Sun, 19 Nov 2023 07:02:46 -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 --- 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 4bd85cc0d32b..ae0c5ee8c78b 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)) -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image -- 2.43.0.rc0.421.g78406f8d94-goog