From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7341219FC for ; Fri, 6 Mar 2026 08:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772786386; cv=none; b=AE07CM2gXAi5TECT3zc3ROq8JSRzXuzY/mpptb2f0435Bp1ecRN1dEHDRXZrl2Z1yPzvKafTYzrad68BgcQnNXIAA7wlM0uOiNi1AGc2YiZ4BOxZLv/T6iDVvnUDFLoDyyKOEN9cHhPaE7GpNmgHzkXE6sfIOqWqj3lAmAE+kOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772786386; c=relaxed/simple; bh=cm0F95J7o4wy2FJXenyX4KSAbX+XAUhtfy8vTlnE32I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iGJeXOJhP/4zbeympF/ixknopYwReC5pCjMRa7iyVqC6Vp8/uRZ/2GputuQFYu//MymgUo8b5skfm34ZOMGxibp5IgHit2XrYi7slnUzsN/0rFZSlBXEaSq3t37ubRkqvRm3B/gjz6WuNlqZ33nzAXzWT5Tlr3+CaofcYZHX1r8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=gC4EOFEJ; arc=none smtp.client-ip=185.67.36.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="gC4EOFEJ" Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1E64F240103 for ; Fri, 6 Mar 2026 09:39:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=2017; t=1772786376; bh=HUIl7fBnMjNKk+2kv/hV6OWGFREjM/5mAylke7VaoUM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:From; b=gC4EOFEJESiWVyZzIbEXMK5eifhrokpoYiDtKYVS9DwNoZoSVrqrcNDw1kOrjpumL dYcB3LpM6KqrmUyHB5qxKkbCSz2DY2ZHGhc8F1HPobhS8pwALUM8srn3juImAwPZAY 5zpbOSnNY82YynEdkY8VOHYdlX8FKSqjW5YnS2iT3iVwzQoaFRqvX51MueAit46Otu NpPw0TaqrgVPk0yAClAFub+ccULT6B87FAIeeRx98p2knprbVOMP/Ta72qklQi0Vmc 4f6rS5diZXfXKcW75yCmEbP3gkh5QDymO2RWMiz6EhJlUz4eho94IcTRxgW+xPMQTS l7x4drOwBSCmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4fS0Fd6XyWz6tvm; Fri, 6 Mar 2026 09:39:33 +0100 (CET) Date: Fri, 06 Mar 2026 08:39:35 +0000 From: =?utf-8?Q?J=2E_Neusch=C3=A4fer?= To: "Christophe Leroy (CS GROUP)" Cc: j.ne@posteo.net, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH v2] powerpc: dts: Build devicetrees of enabled platforms Message-ID: References: <20260305-mpc83xx-dtb-v2-1-cdb751458445@posteo.net> <6d736f38-bd33-4484-b3f2-bb9391976fe2@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6d736f38-bd33-4484-b3f2-bb9391976fe2@kernel.org> On Thu, Mar 05, 2026 at 10:32:41AM +0100, Christophe Leroy (CS GROUP) wrote: > > > Le 05/03/2026 à 10:15, J. Neuschäfer via B4 Relay a écrit : > > From: "J. Neuschäfer" > > > > Follow the same approach as other architectures such as Arm or RISC-V, > > and build devicetrees based on platforms selected in Kconfig. This makes > > it unnecessary to use CONFIG_OF_ALL_DTBS on PowerPC in order to build > > DTB files. > > > > This makes it easier to use other build and test infrastructure such as > > `make dtbs_check`, and is a first step towards generating FIT images > > that include all the relevant DTBs with `make image.fit`. > > > > Signed-off-by: J. Neuschäfer > > --- > > Changes in v2: > > - Use "dtb-$(FOO) += foo.dtb" format on every line, avoid backslashes > > (suggested by Geert Uytterhoeven) > > - Link to v1: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fr%2F20260119-mpc83xx-dtb-v1-1-522f841290bf%40posteo.net&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C9264db0cd3014d5c30c608de7a97cd4c%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639082989567825654%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=QS4N0muz5oPD3WzZQE3FsF5ghDDu9PSJ79iA5R%2FAd3w%3D&reserved=0 > > --- > > arch/powerpc/boot/dts/Makefile | 111 +++++++++++++++++++++++++++++++++++++ > > arch/powerpc/boot/dts/fsl/Makefile | 79 ++++++++++++++++++++++++++ > > 2 files changed, 190 insertions(+) > > > > diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile > > index 0cd0d8558b475c..7fce8c819d3d72 100644 > > --- a/arch/powerpc/boot/dts/Makefile > > +++ b/arch/powerpc/boot/dts/Makefile > > @@ -3,3 +3,114 @@ > > subdir-y += fsl > > dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts)) > > + > > +# PPC44x platforms > > +dtb-$(CONFIG_PPC44x_SIMPLE) += arches.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += bamboo.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += bluestone.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += glacier.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += eiger.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += katmai.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += rainier.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += redwood.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += sequoia.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += taishan.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += yosemite.dtb > > +dtb-$(CONFIG_PPC44x_SIMPLE) += icon.dtb > > Why so many lines ? You should be able to fit approximaly four per line, > > dtb-$(CONFIG_PPC44x_SIMPLE) += arches.dtb bamboo.dtb bluestone.dtb > glacier.dtb > dtb-$(CONFIG_PPC44x_SIMPLE) += eiger.dtb katmai.dtb rainier.dtb redwood.dtb > dtb-$(CONFIG_PPC44x_SIMPLE) += sequoia.dtb taishan.dtb > yosemite.dtb icon.dtb Hm, fair enough, that would work too, and make it visually somewhat clearer what belongs together. I'll wait for more comments, but I think this is a good enough improvement for a v3, while still keeping potential edit churn away as Geert Uytterhoeven previously pointed out: >> Even when it wouldn't fit on a single line, having separate >> >> dtb-$(CONFIG_FOO) += bar1.dtb >> dtb-$(CONFIG_FOO) += bar2.dtb >> >> lines not only makes it a little bit shorter, but avoids the churn of >> adding a backslash to the previous line when adding new entries. Best Regards, J. Neuschäfer