What if it was something like:

image-$(CONFIG_MPC832x_MDS)             += cuImage.mpc832x_mds
image-$(CONFIG_MPC832x_RDB)             += cuImage.mpc832x_rdb
image-$(CONFIG_MPC834x_ITX)             += cuImage.mpc8349emitx \
                                           cuImage.mpc8349emitxgp
platform-$(CONFIG_MPC83xx)              += cuboot-83xx.o

$(obj)/cuImage.%: vmlinux $(dtstree)/%.dts $(wrapperbits) $(platform-y)
        $(call if_changed,wrap,$(platform-y),(dtstree)/$*.dts)

Which would eliminate making all the unnecessary bits of platform code
and enabling the smart bits to be factored out of the wrapper?  It would
also make the dependency between the board and the platform code
specific.It would also prevent building more than one platform at a
time, but I don't think that's really possibly anyway?

Steve

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to