Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4049683pxb; Tue, 26 Jan 2021 11:02:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzadRzqWGFNFgZ7S7ZP8lsCJYtL1nnaMWSEr6nv8WpaNifVS2aWfRrXS5tydV8ILKliWnTX X-Received: by 2002:a17:906:f0d7:: with SMTP id dk23mr4243683ejb.131.1611687727652; Tue, 26 Jan 2021 11:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611687727; cv=none; d=google.com; s=arc-20160816; b=GCXuv6DVzbczJkdrBzifbsHXStb8x2jllffWLuLbNeWMkbHfpx54aC8aI8g1S0wpMB YODIp9bWyNe/259ivX2PIZejDmTj0aFRsf3h7Z0Qm5isfC8FT0cZ1nusJqCnom9tB/L9 qgKj3CeYQZq2ESMWHA4qhiOMBKRs+c3vwQclTLyi8iRnVOEy9pe2/HCq/Vp7j04GlbLe iy+1gzEdlym6AN+BsbYTldzlpeBtdimfDBcVA9RL3rCOdw1W+vh4PTv7WdEtCR3gWbLt BstOiz2AxtoJ/+3Lplz2VQCUx63gHYlRhrYR1DJd8yI0PgVchTc5go9Spg8mG5n/6qTS KomQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6udmKJwRiKy9ka8X7x3SEiZOXeZTC7sabsxd+4XCfKg=; b=iXLylWmRb6H/1MsnCCwnwKbtR99gYXClpZiy9TTBnJm6lUAodaw3HUJCNsfcvw66Cv +J1PJTz5MNEwnHnzKuumG+dx61YOoSZjbdDNTUa3f1P4XIVKp/o0reYvfn9f4RNCMZxS YYL+7KUST8HPzZorVcjFCJqF3bpIpWlFLsiMbTSlIRvirJA+ghVRa9AuWosAko7pIQsd Op3GPQKBW57bEyocMPGi6TI6dicTVPeLF8CC1Nhcji1Gs9MQ7ao8CbhCE2t5qdOklCGi sc7MNUa5Q3X6tQZcGDTMsx8r9kotXsQjGkc9wcUu+dDBJSxrZJ+v3vcVE8CckmdBdG4K LShQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nWwXoa8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si2838773ejb.250.2021.01.26.11.01.41; Tue, 26 Jan 2021 11:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nWwXoa8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405087AbhAZNob (ORCPT + 99 others); Tue, 26 Jan 2021 08:44:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:46498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404748AbhAZNnm (ORCPT ); Tue, 26 Jan 2021 08:43:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7816A2223D; Tue, 26 Jan 2021 13:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611668581; bh=gZmSYgI/wa2/JnuwHcpAdHOfBP02jfH9AVoTNyQbgPc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nWwXoa8f5j/f3gLzJfb7C9m7/sFDrLHniZrrgAr3k2Zu3c66CVjRNMxSWU5xSb82l xkhszdemIvKTLDQEn/CA3Prn09unXNPsfylBVtz0NWF3xhFUXP6/xNwbeEb4x2nHAm iEauYN0wy4xpv3vvbtmFWBixLfgryqrihSe9YIGeNFLbszkFD3WISoI/eGC8gN77VG WP4VXgt+jg3IslYG6sSXafeRZvIxj6IdlyD/5lzQ6XslXEZR/dLn9wP5PzVInhrUds 8U6PrAPO0jaaVWObpmUklbMTVpVSiUKZG5E1AhSmm3pWa2M4cGUKOq5gdYy0zEysqE mKV/13nCeXk+Q== Received: by mail-ed1-f50.google.com with SMTP id s11so19790292edd.5; Tue, 26 Jan 2021 05:43:01 -0800 (PST) X-Gm-Message-State: AOAM531ztYVgbFC7mYXKPFi4ClaRRBRgZz4lns3RNcteLNyVkKNB0CQe vZgzmJK1dZgaGHU5l0iYB/vtSIv6T7hpTadaJA== X-Received: by 2002:a50:fc04:: with SMTP id i4mr4670026edr.137.1611668580145; Tue, 26 Jan 2021 05:43:00 -0800 (PST) MIME-Version: 1.0 References: <20210125105757.661240-1-uwe@kleine-koenig.org> <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> In-Reply-To: <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> From: Rob Herring Date: Tue, 26 Jan 2021 07:42:48 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arm-kernel , cyril@debamax.com, Arnd Bergmann , Maxime Ripard , DTML , Geert Uytterhoeven , Frank Rowand Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2021 at 1:27 AM Uwe Kleine-K=C3=B6nig wrote: > > Hello Masahiro, > > On 1/25/21 10:53 PM, Masahiro Yamada wrote: > > On Mon, Jan 25, 2021 at 8:07 PM Uwe Kleine-K=C3=B6nig wrote: > >> > >> Adding the -@ switch to dtc results in the binary devicetrees containi= ng > >> a list of symbolic references and their paths. This is necessary to > >> apply device tree overlays e.g. on Raspberry Pi as described on > >> https://www.raspberrypi.org/documentation/configuration/device-tree.md= . > >> > >> Obviously the downside of this change is an increas of the size of the > >> generated dtbs, for an arm out-of-tree build (multi_v7_defconfig): > >> > >> $ du -s arch/arm/boot/dts* > >> 101380 arch/arm/boot/dts-pre > >> 114308 arch/arm/boot/dts-post > >> > >> so this is in average an increase of 12.8% in size. > >> > >> Signed-off-by: Uwe Kleine-K=C3=B6nig > > > > > > (CCing DT ML.) > > makes sense, thanks. > > > https://www.spinics.net/lists/linux-kbuild/msg27904.html > > > > See Rob's comment: > > > > "We've already rejected doing that. Turning on '-@' can grow the dtb > > size by a significant amount which could be problematic for some > > boards." > > The patch was created after some conversation on irc which continued > after I sent the patch. I added the participating parties to Cc:. > > The (relevant) followups were: > > Geert suggested to always generate the symbols and provide a way to > strip the symbols for installation if and when they are not needed. > > Rob said: "I'm less concerned with the size increases, but rather that > labels go from purely source syntax to an ABI. I'd rather see some > decision as to which labels are enabled or not." I've also said move the arm32 dts files to family subdirectories and enable '-@' per directory. I've posted a script to do the whole thing, but I think the preference is one-by-one. This is needed anyways if we're going to start adding overlays which Viresh is working on. Rob