From patchwork Sat Nov 4 19:42:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13445581 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 4D19CC4167B for ; Sat, 4 Nov 2023 19:43:28 +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=GYTP3uEERbXQqL 1WR15pP25b+AdI1WBpNZWZhOFZ2/VsHd5FlAjuxokcUejficJA0kGE3Z/Zq9augxCSvzRV4+VXh9v lFH6ArmpP1geML/38e83rgwW+Ju/GV62CH1/FswDP0tYpW8pCK9PH9eeT9JyQ3ODqMJqA220A+Snm H+Gb+UEDsSwHIRHJhjbUCOvFSeG1f1fO4ZRf3EERoUDyE9gQo0uaRnz1tx35sAnn8aV270m2FuSoo 10dEfGFtKL7ReoE0/PFJgCt1Q/xZcfOGOW+/C4SadD6eFThHuYnr0ZaaoQs8nxteyfab0nqEDDMc9 b0bUhvsKB94Hemp9KDcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzMXV-00DuJS-1L; Sat, 04 Nov 2023 19:42:37 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzMXR-00DuGA-08 for linux-arm-kernel@lists.infradead.org; Sat, 04 Nov 2023 19:42:34 +0000 Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7a669a4ec51so115841039f.3 for ; Sat, 04 Nov 2023 12:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699126950; x=1699731750; 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=bMJJLSKFrsr7Is7d2FKEfw6taK/2S/okJIiHhDlwIkyVnbOrjmeTYM6nR+DEd6BPKI 0wO5Hb5ykTeAfs4LWouqHGh9aZHSC3U5xkrjy5MOStAm+v5aaAhlPVQtxJocnzJADlPA yWi+KTvr+WICvVA7IZJsMWWIyruUQAEtfvvmE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699126950; x=1699731750; 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=BtZtf2jZtXSFZ4/AK1xVe8LjR+PO6Hrq57u92vshvlh4cK4vCVHEkgZnbx+ozstZmg AWMoDc12wBqnwDZIKrhE07SCdeRh2N5RZTKPIQbcNoFk3DZKIfhO6AbRn29E8OUy4I7l 4JwIZOmiFZFkHuxGpEJ9qoOecurZVt2aAbnvV/s770CIwDhgXc5R1TObiNRI3rfa2HvV Fv8fOtiNfbVStSMFHgCAJ1Vr8CpVbXNchFeSVx/t1mT/jiKkOUG3Q/bf+/uIZqWWa6ZE 70CekNNk/9FZ4VCatQVe5L2aPW5t1CJD9YProRHP/98f1r18x6fX+Mv1t5V6zeDEniIC nnxg== X-Gm-Message-State: AOJu0Yz+ZoloCerHgU6go/DdwLKc/Qcw1IVzwxJC3h+pwrg5BKrHotkD UT/sRQe5I1wfVidobB4hLzhtJJopV0+m4U5HUbahzw== X-Google-Smtp-Source: AGHT+IF/fXvPBrPumTSxUQEBjtRyCDMgeyWz6G5jCVwdriNrUNr0MdYxjACyDjlaZtmvTvcGBTB3Yw== X-Received: by 2002:a05:6602:1592:b0:790:a073:f122 with SMTP id e18-20020a056602159200b00790a073f122mr37121229iow.2.1699126950221; Sat, 04 Nov 2023 12:42:30 -0700 (PDT) Received: from sjg1.united_club.lax.united.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id o4-20020a6b5a04000000b0079fbb834232sm1293318iob.19.2023.11.04.12.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 12:42:29 -0700 (PDT) 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 v2 1/3] kbuild: arm64: Add BOOT_TARGETS variable Date: Sat, 4 Nov 2023 13:42:02 -0600 Message-ID: <20231104194207.3370542-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog In-Reply-To: <20231104194207.3370542-1-sjg@chromium.org> References: <20231104194207.3370542-1-sjg@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231104_124233_085860_7A70861C X-CRM114-Status: GOOD ( 11.08 ) 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