Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841AbdHPAOx (ORCPT ); Tue, 15 Aug 2017 20:14:53 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37956 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbdHPAOv (ORCPT ); Tue, 15 Aug 2017 20:14:51 -0400 Subject: Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files To: Rob Herring , Tom Rini References: <1502831736-28282-1-git-send-email-trini@konsulko.com> Cc: "devicetree@vger.kernel.org" , Tero Kristo , Nishanth Menon , Tomi Valkeinen , Sekhar Nori , Rob Herring , Masahiro Yamada , Michal Marek , Pantelis Antoniou , Linux Kernel Mailing List , linux-kbuild@vger.kernel.org From: Frank Rowand Message-ID: <59938E76.3010807@gmail.com> Date: Tue, 15 Aug 2017 17:14:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1198 Lines: 28 On 08/15/17 15:36, Rob Herring wrote: > On Tue, Aug 15, 2017 at 4:15 PM, Tom Rini wrote: >> With support for stacked overlays being part of libfdt it is now < snip > >> My proposal is that we do not want __symbols__ existence to be dependent >> on some part of the kernel configuration for a number of reasons. >> First, this is out of step with the rest of how dtbs are created today >> and more importantly, thought about. Today, all dtb content is >> independent of CONFIG options. If you build a dtb from a given kernel >> tree, everyone will agree on the result. This is part of the "contract" >> on passing old kernels and new dtb files even. > > Agree completely. I don't even like that building dtbs depends on the ARCH. < snip > I also agree that use of CONFIG options is a solution that I do not like. It has always seemed that there is a bit of an impedence mismatch in that we build a dtb in an environment that is configured for a specific board and architecture. Does anyone have any thoughts on another way to control whether or not a given dtb or a given build of a dtb would contain the symbols needed for overlays or not include the symbols? -Frank