
Dear "Hu Mingkai-B21284",
In message 73839B4A0818E747864426270AC332C30447ECC6@zmy16exm20.fsl.freescale.net you wrote:
... [Full quote deleted] ...
You already know the board name, because the board config=20 file is clearly related ot one (or eventually more) boards.=20 The rest can be done with some trivial #ifdef'fery.
Could you please stop full-quoting? Please see http://www.netmeister.org/news/learn2quote.html
Oh... I complicated the matters, you means as the follows, right?
In the Makefile: MPC8536DS_NAND_config \ MPC8536DS_NAND_36BIT_config \ MPC8536DS_36BIT_config \ MPC8536DS_config: unconfig @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h @$(MKCONFIG) -a MPC8536DS ppc mpc85xx mpc8536ds freescale
Yes, except that the "echo" line should not be needed either, as mkconfig would to that automatically for you.
then in the include/configs/*.h: #ifdef MPC8536DS_NAND blablabla #endif
#ifdef MPC8536DS_NAND_36BIT blablabla #endif
#ifdef MPC8536DS_36BIT blablabla #endif
That would be CONFIG_MPC8536DS_NAND etc., but except of that that's whaty I mean. [Eventually it might make sense to ise a common prefix for Maefile generated symbols, like CONFIG_MK_ or so.]
I'll intergate your comments, align the patchset to the latest U-Boot and resend the patches, please comments then.
Thanks.
Best regards,
Wolfgang Denk