From patchwork Thu Oct 26 07:26:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13437309 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 6A0A7C25B6B for ; Thu, 26 Oct 2023 07:28:26 +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=0snhOuA39IL9LLV1s+UFyrKzxjoQ6bgY3aL/Fg9wItY=; b=DAauwZtTP6lpqA UxHN12tdg8ZJCFaY54F3n7D1PnOZYvOUA2e4yGBCO5M5AQ3FgT3i63gEmmqqEV9uNv0BVlIMbDRLV qfxXiZZZwwRS9esQw1YOwS+HSGba+8rQObyFrtT4iRnWVPY7FTPrjRKz+/sCCMK7wHvIeSfEe44HK hGYBw4uvhyOSObopdRd6ZQ3Bgjr/uewNI6vMQ9/8xvwyPY2m/mC6wmZfBdyT1EZbuR5qYMDhMd+A7 bqQIIJjYRyqptpByTd5TmSdpYciBn3RTvpke5tauegd+boK2PLszVabt7SvSxVlwQp1vcpjhnbvPg G5pkZyClbgrXMU79llEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvume-00Dqe9-2W; Thu, 26 Oct 2023 07:28:00 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvuma-00DqbU-05 for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 07:27:57 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ca052ec63bso4806535ad.1 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=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=j5HROyknCuzezfPnKKu8GDq6Ak0A1oqAWU9OMPRzgBc=; b=GU2+EGvZzw4nRvAEt3LNI7hh4oHIFYgtKcQ41MhDYL521OiLsN5yCtCm7tk8nLHahV X+1K/gg5h1WzFt75EFPi4+qkgcqYTXPDJBUIxSWjtohb0ivNs937CytUoJGpPmkI2UxE dl7df8RaQvL8lxcM0fXKkXBz+SowFLp2R3CC0= 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=FqP18iOxb6Hg9NkeV1QFuBzEr+bSY0o2JAshvHgumqhBH4gS/IhlCYsXf0nEhRBd4j 4PfHKOJPDWbVFO/8jMgogdoYx9HDe1aw42R+m0sj+cG7ffzNOeamFmtmS14jzLfc5MYt kvFkXJ8ON85guKB+CIuSrKkCQ3K+GyoUzlnZTpxuVtqagoYcr0R4bUqu7ojOXVa3tNpm 4SWvJsSgKpBHCKk54Gjzv89fiD6a8pSqldK6ZQ5Qpd5eqgC1SRLD10W8IPgdtXCUILVi vPx2R5u/zOq3oN38rKqrCxybakIe6GTKvv9yJaygHYCkcxKdmVDN9O7RKWU+1edCQ8oD tH2w== X-Gm-Message-State: AOJu0YxC1m/22CiumTSiLmYoL5X+NCOOnAtFHFaT/mprxLWDcvCRl3Nu OYY4WMiFko+kYuouV8le6CBwwPB/17UHBb55sFVZnA== X-Google-Smtp-Source: AGHT+IHLgMaOOEK4ReQTWHExwr7/eZYHbMKrsEkSXncJZod4bQAJS7bbZdeJ3aYm6Bj6VZxgH+W5gw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_002756_062560_F99F49CF X-CRM114-Status: GOOD ( 11.07 ) 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 --- 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