[U-Boot] [PATCH 2/2 RESEND] SPL: Allow user to disable CPU support library

Scott Wood scottwood at freescale.com
Fri Sep 16 23:42:50 CEST 2011


On 09/16/2011 04:38 PM, Marek Vasut wrote:
> On Friday, September 16, 2011 09:49:28 PM Scott Wood wrote:
>> Still, this seems hackish.  Shouldn't the control be on specific files
>> that you include, not directories?
> 
> I don't think so ... why ?

That's how the main U-Boot build does it...  More specifically, the
config.h controls should be on features, and the makefiles should decide
which (if any) files are required for that feature.  If there are no
files from arch/$(ARCH)/cpu/$(CPU) needed, then we get an empty
lib$(CPU).o -- nothing special needed to avoid it.

-Scott



More information about the U-Boot mailing list