[RFC] [PATCH V2] Adding DTB to architecture independent vmlinux

Grant Likely grant.likely at secretlab.ca
Mon Nov 1 14:05:45 EST 2010


On Thu, Oct 28, 2010 at 11:26 AM, Dirk Brandewie
<dirk.brandewie at gmail.com> wrote:
> On 10/27/2010 05:57 PM, David VomLehn wrote:
[...]
>> You might then use:
>>
>>        obj-y += $(addprefix .dtb.o,$(PLATFORM_DTB))
>>
>> to add blob names, but I'm not completely confident this is the way to go.
>
> I am still trying to settle on the right way to specify the DTB to be linked
> in
> that won't generate a lot of hate from the build/distribution people where
> they
> are supporting multiple platforms with/without the need of the DTB.

Take a look at the arch/powerpc/boot/Makefile where multiple images
are produced depending on the build target.  There are cuImage.%
targets which link in a different .dtb file based on the % part of the
target.  That allows images for multiple machines to be build from a
single config, rather than depending on a magic setting in the .config
file.

g.


More information about the devicetree-discuss mailing list