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: 13448638 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 9D486C4332F for ; Tue, 7 Nov 2023 13:27:16 +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=nSiexZ4pamf2I+mQR98wniLIELhhorOOC1YINtfYoqc=; b=mBOCTxGNOAr59q GnbOIObRMftfHOKgrLsyEl/Tq2Y4qaUJu5PuAETYLy7DlOgBALM+t7df9d60bhxF8tzSxMLMBAkor Tv2cDbf2jhZlstAxE76ZMhK6VUROs6hVM1oN8611ojBhsj3MWnLC/D25WX03ukliENk4gin7HScyA TvFqQ4c4lZBzAj6fhKQ0tkrumsCryTcStAMvcRbIIrdKSUVLdWWT/IDIaZq5E9E6E+rPMYnJblJCv 1D5Q+JrDlnEuxZuhGKi9wV+J0Lat+Em4qF0qqLEBh//3foBLyVxoHokAsueV1XK14azLNOQVgmfEr 1CIp7mNyWkjlIH0s/dIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0M6N-001bwV-1E; Tue, 07 Nov 2023 13:26:43 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0M6I-001bt4-0t for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2023 13:26:40 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-3595eb920e9so17334935ab.0 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=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=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; b=N32ruHFCCfwefSG9Gvmw6XE8wnqGob6Tuu+eTuncKt5Z6HlTzWmTKxrdaA7gLd1M3m 1SSjm1F0kQmriaVGhMVoSf25uG22Hfjyjj9wUola33C3IlIxYPQSwVM6ir4jgxMy7bA1 OylUhmpRvu2uhIK+grO+/xveKebwRSY6P81jE= 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=J7q2b4yLxlbxsaIcxVHN6YslDiHdSmGmg3mm+pEKdryjM95eDufb0mJ7CpFjikk4d6 cd9sWitswlbjSifcW6Rsp7E1i+BuA20AQoCiF8/EEpG7ZdBSXOHYJCcHO3YzhgBvGN2P oNPycMyFWyHuNK7Ns439KFbXIumoN/wRXGMas+BAOXvPqzneyOV0jaoYifP3EYz3Ojjy OXWVMV/vTrmWj2TliiFqgUmaIk6+Wk14V8kBXX9VOmzJZCn5m2M7YNKUyaSm0WT6v8d/ 9QGpG2gknuB/XM39iiaJCCfeQOhxeOc9mOzNe9aCpajNRBsfOEt3TJ1QowxIZp3KaYU0 whlw== X-Gm-Message-State: AOJu0YwVI37lNE2zZL3bnwLGuL9gkAOIJqMMhGEp1UFyTadu/j5hz4uV f23V4/GDQutNv1mL6NjnsjN6DqNFxsMfXF2/5dkVJw== X-Google-Smtp-Source: AGHT+IFA2Meg21EeLlaQDzpshWitOcfdYqDCyk1R7zr9wR5+pxet1yylcylsnJ+ZznmSM2QLqVbohw== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231107_052638_340004_1B1C9F60 X-CRM114-Status: GOOD ( 11.28 ) 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 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