Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1484810rdb; Fri, 1 Dec 2023 19:55:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt6lgNxlSu5Ij6KtT/ktdL+3hHZ0PrS2AKoPcoqZv188yLVC+zZ1d8kRz8YJhCSJAPG2mB X-Received: by 2002:a05:6359:7291:b0:170:17ea:f4ec with SMTP id uw17-20020a056359729100b0017017eaf4ecmr370253rwb.57.1701489352217; Fri, 01 Dec 2023 19:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701489352; cv=none; d=google.com; s=arc-20160816; b=01r+HfTmFFh41vztRhoyBMiXnaTF3wp7R26e+16n5fK8WNwvbmPAzniLXnw7Ad0uwE 9KmFnEKWqq5h/XYOW7sKsStZJgv1ZAltWrtSTUMsoXhqbySrpU5agnF668mPfAaW5Quo 2CrkoU0qgpSFm/cpMv2khUqxyXCtmIWCvEFz+DcGaKdkdw1U+HrTVJGVilq2XKe5ULjH XWZKzECX34UGQmVHRYNDacnOsaCufW1D39dpiaibTx7IUv2P1wFqEcH8qHbrdYDmSUha JjfFjx35tHUz/uM+KdI4hFuPVBEmLHJashYkPu/v2WQ1l4Bo5ssuep6tOiRNjKS1Y/Vb ParQ== 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=u3X4vTUs671P9w2w15YSjDu0ez9hyMXsXDp/zDDRlro=; b=NKD2yRuyiQmp0XPe2ApIXNwQcwFVb00utdaV61lum+3NpL81XhD4BnFXQAcTBbwW+K /rYh+z2TYmvl0v0+okw6b6j/Z3ut16yrln4Dqh51Jf46fhTD31MsBWZQl4NZ1Mh8eygy W9BNKHTYA4N4+ic9s0kNqjzptgnbCSy9Ku5/3qGS8P3FBiksBsXzmIvZnrHsDaaiK5QR z9bxI1qOT7Rgee3V42GYzRPoPhlXoOELKLZGFcramQGmCfFhBa+AcnrwD+n597dW/590 wBrbcy+satJEYfz7cComNgbUgqmtKvq1wk2VZeJ7X7QkKHc9o6FOJrJ1RdfXydL4vLs9 rIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MEJJgvMU; 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 i23-20020a17090ad35700b0028014e41ff7si4415618pjx.48.2023.12.01.19.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 19:55:52 -0800 (PST) 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=MEJJgvMU; 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 CEE9E80E9961; Fri, 1 Dec 2023 19:55:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjLBDzZ (ORCPT + 99 others); Fri, 1 Dec 2023 22:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLBDzW (ORCPT ); Fri, 1 Dec 2023 22:55:22 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0ABEDD for ; Fri, 1 Dec 2023 19:55:28 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3b8929269a0so998309b6e.1 for ; Fri, 01 Dec 2023 19:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701489328; x=1702094128; 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=MEJJgvMUWWmg/A1MhuNm5pq/h2Thxl1NsIjfXH7ulBsHyh76WGLYBIV6/6hkfyqFiP 3hM1pn7HDb24Q95aJrx0jsQEWwmv8zcppr+3gpI23Z2l2L8kVB1gJoRL2fut/+LYI4Kg JGEfmET8ti+JnqeOfhFd3YkXjt4xvrQa6nJKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701489328; x=1702094128; 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=ITSncaORu/dL8N0lBP+nB7WX0Stw5Wlq+gsjAFivDUmfIn8zvHU0s+qSxdNtjrvn8w IFi6Id6TLXIsiNA0+cPOaWaZjH2VrpHp3Ve2+AnpZYk4vVHdHXCko1A+JAhKryvgzBDF semj1p9KSElTfQeUBqT4071fwU7xVnddVbAIoQmf4YZ2tT5mU73/LQuMj6tuI1+/WIPw T5XeUs/xC32rI2K4caC4nKEuW34ONU3XGJbDiMMFgqd2X7hQFNDt39De7nltDG0IyhI4 k9IfGkypoIYj6dbu1zbxljbnrJvraiCOViQ+LpU5jKvbLw0GIvSvSRYNt85cro3OeCRG EreQ== X-Gm-Message-State: AOJu0YyO+sy919/p+/2YjSjz03yxDtXRB4AdKJrz09DDm+clmM28nnJS L/8KsD68f12UUkkAiznVL5S3KQ== X-Received: by 2002:a05:6808:1506:b0:3b8:b063:504c with SMTP id u6-20020a056808150600b003b8b063504cmr850392oiw.77.1701489328310; Fri, 01 Dec 2023 19:55:28 -0800 (PST) Received: from sjg1.roam.corp.google.com ([202.144.206.254]) by smtp.gmail.com with ESMTPSA id t7-20020a62d147000000b006cb60b188bdsm3866565pfl.196.2023.12.01.19.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 19:55:28 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Ahmad Fatoum , U-Boot Mailing List , Nicolas Schier , Tom Rini , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v9 1/2] arm64: Add BOOT_TARGETS variable Date: Fri, 1 Dec 2023 20:54:41 -0700 Message-ID: <20231202035511.487946-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231202035511.487946-1-sjg@chromium.org> References: <20231202035511.487946-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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]); Fri, 01 Dec 2023 19:55:48 -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 --- (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 -- 2.43.0.rc2.451.g8631bc7472-goog