From patchwork Tue Nov 7 14:48:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13448915 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 057E7C4167D for ; Tue, 7 Nov 2023 14:49:55 +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=JbaaIzscOHSRrK RQsfOnVZ470zTa1uCIEkxjOZg36D5zLfuigeiYV7UYgnZepu9kRY5Gz+t9ZH9p3w7yDPk4e4MKxWM 1KS0w2tCS+hQe41E2SPIH8q/wUvRYQ7jOxcsUc5pkO8cOtH3NM9PQqBKemwNij3z9v2x6dTgMCxao yWMpSf6d4Eco85jOcCVdX78S+FbsiY9ZsMOc1yEWdQhxPw9XAk8tB2Knml3Dvf0v0cPmbIgM2QVVU u/98qURr7YB/He5n7Ojqs7FHvWBcXKl8qOt/Hil9Vnk3vUsa5u/oytI2jSvM7iE/Y7u1UC5/DykFB FXz8pQeca7xWy6nSd7Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0NOU-001l3G-2j; Tue, 07 Nov 2023 14:49:30 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0NOR-001l0x-2S for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2023 14:49:28 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-3594c100735so14402705ab.1 for ; Tue, 07 Nov 2023 06:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699368564; x=1699973364; 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=UrBz9OyQI0D+zYn0P1ruznGYwtOAASPPFyjeltBMn+iLpuXPFt/alZK2YJp2ff/d09 KIJiqOkFvzIYsvDfkqBM6bREYhCyKgywUDnrBOFTIgRsb0fO9PZyzMNJLzE0vi95u2Td 6/JMXqdvSPEzym8mM8ECO9Z5bAowTGN91wOqk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699368564; x=1699973364; 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=Uh1ozyWtZJFARF7LoFmPGbdGvKKjm/RGEX8AqV2Y/boyGg5hFhLTr+cKiIm3zGr9Qf hI8u69sJd0mhyiu0+LMo2tdkI5nG2suUATdntZUCADp9svgnLBAZzyDiFraaOaA2swn0 +pgluRGOuPFxgQkaRp3jiFDYggW/C1YHtQNY/ZKwveBt0ss/JRVvcHeLFivcQb+nbzcA x8MiHZcAj4oAIZZYGyTqr8IXsuLO9lE/hpL9YYphaACnhu/nwrtJD2iG5DROKKwP3FD5 ahTHD5ObDtOeO8CyXOsJ7jpi9WBT91UryRir0Bsbn1SySAXd+apwj04hc/zZd7LBw7QC dN8A== X-Gm-Message-State: AOJu0YzC0rIB9BteovXIKkQ7mKVg+FY8Qjw9i3KceQ9yYtSN3sP87OSM 5sRlTgO1XWafoAIAL3P7r7MuDoz2hg7SlXz+lamEGw== X-Google-Smtp-Source: AGHT+IFwrc4laN5WRGczr1HIoLEY3sGt0wG6iwQWSFLgABNJrxoQEvucY/YLmMfcQGEwsAJ+0F9v4Q== X-Received: by 2002:a05:6e02:1bc3:b0:359:3491:9042 with SMTP id x3-20020a056e021bc300b0035934919042mr3014205ilv.9.1699368564218; Tue, 07 Nov 2023 06:49:24 -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 b16-20020a05663801b000b0045a66a26208sm2815200jaq.128.2023.11.07.06.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 06:49:24 -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 v4 1/3] kbuild: arm64: Add BOOT_TARGETS variable Date: Tue, 7 Nov 2023 07:48:49 -0700 Message-ID: <20231107144917.48304-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog In-Reply-To: <20231107144917.48304-1-sjg@chromium.org> References: <20231107144917.48304-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_064927_804208_ADB85572 X-CRM114-Status: GOOD ( 11.27 ) 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