Message ID | 20231119150229.634424-2-sjg@chromium.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1690153vqn; Sun, 19 Nov 2023 07:03:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrsu+ImxBmLa7HUZRxG3fV4CflkYCsQ+m2fZWbB49G8WAIbORlgX8gOZmiYCDio1iPlpk9 X-Received: by 2002:a6b:c90b:0:b0:79f:99b6:63 with SMTP id z11-20020a6bc90b000000b0079f99b60063mr5963567iof.9.1700406188677; Sun, 19 Nov 2023 07:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700406188; cv=none; d=google.com; s=arc-20160816; b=qtt4KULle/AR9QV3IJI8HWI2PUy8g2t4Ad5J3CPO9Y3roEd4End+D43mOLDsuI7T8r MQFcP65H50/mEvlt3qB5/6rUxEMj7rix+CEvLs5NZUOPF29Ekv/XAXgbw1j40p7yegXG 4DUf2Eh8lwk4nZjr500Euobil/yGh7qN4zoxGLDkdx7U4HtUc27wTpDdJG1UjZ5B2nqW hlT69wZcF/rpNqY9mt51guuhfFxEH5krVBfCsJEnbeuVMH9omKJvVEicX1HxfOtkGEuY CsFAu36VQ5qwHitryAQ28D+9GEwu1As5RpkpgvPU8F9+Gi0tJxEVY0OheZV6z6ODReCS qN9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; fh=I9F19W6FwrEFOVQV3GAc8CA0hld10c1mwo4fqXN+m8I=; b=TLF0xi7bJ55nfVDLaPal8uOMgdb2TDmTYDCnwrHRnJjgTqXZ6jdtaUCXhuRa1pljcG DM0XJfXV7TK532jzei+7zdjWJI6XcYYv4BPpYoO76oeIk8iM3ckgJBO2OcZ9+T8hPsmq ncol5miYFrbNrgjo5sbL/gjDKsyE9q8vHPrer6W7IGNtKkM3O8un32Hv3e6D0dMNCf72 Uw9q6zwyiNbqVdnsspKoms0iUH+45xAsuO0t46tbzlCZhbP6RhyYkGg4P09hxpzqMVrn OKL6DJE4S6bizP7Nejrs29SNNzsOd9A0tSLcYAaAyFogRSfOaBb85Kj7PUHkWo0GNs/V eI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KWGFHmne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t17-20020a635351000000b005b896ecd1efsi6456689pgl.172.2023.11.19.07.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 07:03:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KWGFHmne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D9306804E821; Sun, 19 Nov 2023 07:02:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230491AbjKSPCm (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Sun, 19 Nov 2023 10:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSPCk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Nov 2023 10:02:40 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7049E1 for <linux-kernel@vger.kernel.org>; Sun, 19 Nov 2023 07:02:35 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7aca968a063so152009839f.0 for <linux-kernel@vger.kernel.org>; Sun, 19 Nov 2023 07:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700406155; x=1701010955; darn=vger.kernel.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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=KWGFHmne20E8qkdoBvrTXcmVOr+EMQh/wLZj3+3175rh9yGgUtMzsy+KLNdsS23AqU wvWorwuD5Ak+nf9O9SmF8UhckoPbkoYEoU6sTm2P81O9XBGnXfpn+/u6trvfk4Wvk40U /ugulVeZtFPLkTYI6w7VaaxqAqTa15KB9R1XY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700406155; x=1701010955; 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=LPDLaEBsiuaLoWhERQwxK3nM6Hz04+6uU6ZsB6GmVKQ=; b=bDYfd5Ixf9xmjHEG2tzOjJsi8TkPIxTTbkQhXT1JkgTt+W1ssMZyIov2gOhhVlN8Rf A+PJ8+m8bZANxGXWEAuZiWiUf8eVJ+U6WRcp9HFk3Il5OoKSUo91/iFGNeU02G3a6nEC QIVc2iY9+kGSA398KB91ATfaYUBykZRVzkG8o7ce/9NL2uLGryvPygTd/EmkYqu7BEu2 npyULWPHjfih+90ZzZfXI2gknIB/kcG52mZp+CUsq2NyCxY/xb+TqwH/j4zNDNunEExu Kcs11adG3Q21hrRzZOcx6M0gCN5m55mGgSSjEkhBJ/PJOc4qqwwWcZDb7E16jLXYGeOz Jhbg== X-Gm-Message-State: AOJu0YzL5mgKF3SLRSqJnoM1P+q1n5Am8q+hW0cNTm1nG4QncQapJzCN Wud2ixcqxR+0PVDYdBHG28qfdA== X-Received: by 2002:a05:6602:c7:b0:79a:b667:4e97 with SMTP id z7-20020a05660200c700b0079ab6674e97mr5843610ioe.0.1700406155245; Sun, 19 Nov 2023 07:02:35 -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 w24-20020a056638379800b004665bec29d1sm79923jal.128.2023.11.19.07.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 07:02:35 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List <u-boot@lists.denx.de>, Masahiro Yamada <masahiroy@kernel.org>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] kbuild: arm64: Add BOOT_TARGETS variable Date: Sun, 19 Nov 2023 08:01:14 -0700 Message-ID: <20231119150229.634424-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231119150229.634424-1-sjg@chromium.org> References: <20231119150229.634424-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 07:02:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783005119741070385 X-GMAIL-MSGID: 1783005119741070385 |
Series |
arm64: Add a build target for Flat Image Tree
|
|
Commit Message
Simon Glass
Nov. 19, 2023, 3:01 p.m. UTC
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 <sjg@chromium.org>
---
Changes in v6:
- Drop the unwanted .gz suffix
arch/arm64/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Comments
On Mon, Nov 20, 2023 at 12:02 AM Simon Glass <sjg@chromium.org> wrote: > > 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 <sjg@chromium.org> I encounter difficulty in understanding your subject prefix policy. You used the "arm:" prefix for a patch irrelevant to arm: https://lore.kernel.org/linux-kbuild/CAK7LNAQN_qGYztWGDmQyfg+eZ5P7RkM47mpgp0dQn_iuhvTSWg@mail.gmail.com/ And, the one for this patch. "kbuild: arm64: Add BOOT_TARGETS variable" Please do not add "kbuild:" for a patch that modifies arch/arm64, and that was not even submitted to kbuild ML. > --- > > 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 4bd85cc0d32b..ae0c5ee8c78b 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 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 > -- > 2.43.0.rc0.421.g78406f8d94-goog > -- Best Regards Masahiro Yamada
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 4bd85cc0d32b..ae0c5ee8c78b 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 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