[PATCH/RFC] Add cmd_wrap_dts rules to arch/powerpc/boot/Makefile

Mark A. Greer mgreer at mvista.com
Fri Oct 20 05:26:41 EST 2006


On Thu, Oct 19, 2006 at 12:50:01AM -0500, Matthew McClintock wrote:
> On Wed, 2006-10-18 at 17:26 -0700, Mark A. Greer wrote:
> > 
> >         $(obj)/zImage.sandpoint: vmlinux $(wrapperbits)
> >                 $(call cmd,wrap_dts,sandpoint)
> > 
> >         $(obj)/zImage.initrd.sandpoint: vmlinux $(wrapperbits)
> >                 $(call cmd,wrap_dts_initrd,sandpoint) 
> 
> 
> Can you do something like this to make it even more automatic:
> 
>         $(obj)/$(CONFIG_SANDPOINT): vmlinux $(wrapperbits)
>                 $(call cmd,wrap_dts,`echo $CONFIG_SANDPOINT | awk '{print substr($1, 8)}'`)
> 
> I'm not sure if this will work exactly as is. But, I do think adding an
> entry in the Makefile for every possible bootwrapper target is needed. I
> say this because I intend to add targets for all variants of Freescale
> boards at some point in the future.
> 
> Let me clarify my needs here some more, I want to be able to type 'make
> cuImage' and have the scripts build the wrapper target and attached the
> correct dtb for all variants of Freescale boards. Of course, the dtb
> will hopefully be specified in the defconfig. Does this make sense?

Yes, something like that would reduce the number of rules that would
have to be added.  I'll think about it.  It'll be low on my priority
list though so feel free to submit your own patch.

Mark



More information about the Linuxppc-dev mailing list