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

Matthew McClintock msm at freescale.com
Thu Oct 19 15:50:01 EST 2006


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?

-Matthew




More information about the Linuxppc-dev mailing list