[U-Boot] [PATCH 1/2] Build u-boot.imx by default when board uses it

Stefano Babic sbabic at denx.de
Thu Nov 17 08:07:11 CET 2011


On 11/11/2011 02:35 PM, Loïc Minier wrote:
> On Thu, Nov 10, 2011, Mike Frysinger wrote:
>>>   CONFIG_IMX_CONFIG is set in boards.cfg.
>>
>> ugly undocumented CONFIG's are awesome
>>
>> this really should be in a subdir rather than the top level.  we want
>> to keep arch/soc-specific cruft out of the top level Makefile if
>> possible.  isn't there a sub-config.mk somewhere you could add the
>> line unconditionally ?
>
>   Can't see one, but Aneesh proposes the OMAP approach of
>   arch/arm/cpu/**/config.mk files.
>
>   The CONFIG_IMX_CONFIG actually changes per-board, so the boards.cfg
>   approach to set it seems ok; however we could try defining the
>   u-boot.imx rule in a common i.MX makefile snippet somewhere.
>
>   Perhaps arch/arm/cpu/armv7/config.mk or
>   arch/arm/cpu/armv7/mx5/Makefile, or a new file; I don't have a strong
>   opinion.

Then maybe in arch/arm/cpu/armv7/config.mk - the coming MX6 SOC will use 
CONFIG_IMX_CONFIG, too.

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list