From patchwork Fri Mar 29 03:28:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13609988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CB7CC6FD1F for ; Fri, 29 Mar 2024 03:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EezOz6RS6tfJGnU0OChjqoXC9BP4VDmmmUJgHkwA4rc=; b=FfjiFTP+VzdSxJ /JSksYgBKeuAh1D3oKho0uaJXG1PEhgfvMJgIzKopJ6wAsXq2SPqgK7r5/mDlr8qCPeoqaDzLf8oN e/aDvFnhm675nb/b6Wx/HDGvQXySadMclR+YlOxUVxEU/HPrRqRtJyq/gV/U2jAmsh+xNffUyQRKn Mx88o+XANeahrpBVOl1RutfprJeTiApuE4AxuJbej6LOAPxKQqtSNmlS2uYTnkt0PNoDkWTTck0QU VPmvUeUTJZT9OEdNWZP5whTB2ycxyw67d+Mma259JcXfrVqgMuonJIpRoD63rWDmFWen33kHOEhDa +M5VjB9oZm8l9MaLugjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq2vs-0000000Gf61-0in8; Fri, 29 Mar 2024 03:29:32 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq2ve-0000000GezY-1gD1 for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2024 03:29:20 +0000 Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-36898a6f561so6602435ab.2 for ; Thu, 28 Mar 2024 20:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711682954; x=1712287754; darn=lists.infradead.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=sj1MXeANmDRLF3MEitp9MoX29tLTgbBs/EQT3G4Krt4=; b=mDWdDA7G1ivAcn8SxPiA7ZoIsAkgtDKlc0043LvlZzfhQkwNd+9nRB349jKWWWkFeB AhevxEMlq0a9m/kImnx3PnRWIfHMSSZv7jYYtjJQwr++JUb6HfgfPd2FWfgqre7wsDdS jOFy76rlnI9Y13nuxbUlTaK7jtOVbDC4Xk0Qg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711682954; x=1712287754; 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=sj1MXeANmDRLF3MEitp9MoX29tLTgbBs/EQT3G4Krt4=; b=Y+P6BMv58hzXQXhOl7DqgMPJaYY+uufF3y/usfD0xZlCRfIPW2uODZRp7J1G/+K7ye 7gikFC9Ntdd3y9pKMEXid1dXxVbYKnW/CXcHr0p7hADI3uW/WcfZVsC2A9DU9ozG4aiy tCkvLraAG3HAvumeRHE5pQHc+ruoRhQpEltWfnFf/rRpwpVj1Rb1HiMea1GX98XLl3ZZ fW7tkR5AIfpplX+9Xiv6egUuXgQsD3d2VQguGqdVV71PelEo/xxVkv0Kr4MF4wAm7h6c 93uQgzwyuIY7M3kvpolF9gwJNa3Kj18Z0P6kMf1SuQHVwETl80mOXcZJz1OCj2TVUaiT 2yyg== X-Gm-Message-State: AOJu0YwTtwE7mLng+LI2MixLpeWmtKrB5+vMklZQjwxtibwVJtE0c6r+ YIxEBmR5SbzJ+iLt08RWBeJDz/W1mbVY7NG1HABIx3bAkiud5SzG+AjGv3hkl19eTxMG5T6eEE4 = X-Google-Smtp-Source: AGHT+IHBhFtUhiYlCuiJ8vSmaWzsYvUsbY8e4AkQFg1uPMmLqjZTiVReHnzCvjKoN3uPKuij/fEP7A== X-Received: by 2002:a05:6e02:b41:b0:365:1d57:6da0 with SMTP id f1-20020a056e020b4100b003651d576da0mr1077561ilu.26.1711682954344; Thu, 28 Mar 2024 20:29:14 -0700 (PDT) Received: from chromium.org ([75.104.105.200]) by smtp.gmail.com with ESMTPSA id l7-20020a056e021aa700b003685b574968sm815717ilv.51.2024.03.28.20.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 20:29:14 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Ahmad Fatoum , Nicolas Schier , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v12 1/2] arm64: Add BOOT_TARGETS variable Date: Fri, 29 Mar 2024 16:28:35 +1300 Message-Id: <20240329032836.141899-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329032836.141899-1-sjg@chromium.org> References: <20240329032836.141899-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_202918_697286_EF38A51F X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 0e075d3c546b..1217d97998ac 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -154,6 +154,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 @@ -163,7 +167,7 @@ endif all: $(notdir $(KBUILD_IMAGE)) vmlinuz.efi: Image -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image