From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Pitre Subject: Re: [PATCH 2/2] ARM: allow for ATAGS to be configured out when DT support is selected Date: Mon, 3 Sep 2012 22:56:26 -0400 (EDT) Message-ID: References: <1346361008-7320-1-git-send-email-nicolas.pitre@linaro.org> <1346361008-7320-2-git-send-email-nicolas.pitre@linaro.org> <201209012025.27962.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201209012025.27962.arnd-r2nGTMty4D4@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Arnd Bergmann Cc: Russell King , Will Deacon , arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Sat, 1 Sep 2012, Arnd Bergmann wrote: > On Thursday 30 August 2012, Nicolas Pitre wrote: > > Now that ATAGS support is well contained, we can easily remove it from > > the kernel build if so desired. It has to explicitly be disabled, and > > only when DT support is selected. > > > > Note: disabling kernel ATAGS support does not prevent the usage of > > CONFIG_ARM_ATAG_DTB_COMPAT. > > > ... > > > +config ATAGS > > + bool "Support for the traditional ATAGS boot data passing" if USE_OF > > + default y > > + help > > + This is the traditional way of passing data to the kernel at boot > > + time. If you are solely relying on the flattened device tree (or > > + the ARM_ATAG_DTB_COMPAT option) then you may unselect this option > > + to remove ATAGS support from your kernel binary. If unsure, > > + leave this to y. > > That's a clever way of implementing it, I had not though of making it an > optional default-y symbol. > > Acked-by: Arnd Bergmann Thanks. > Should we do patches to the individual platforms bsaed on this to disable > the ATAG based board files when CONFIG_ATAG is disabled? Well... that could be a good thing to make them depend on ATAGS indeed. But that can be done incrementally in later patches. Nicolas