[U-Boot] ARM mach-types.h (was: Re: [PATCH 1/5] add DOCKSTAR machine type)
Wolfgang Denk
wd at denx.de
Wed Sep 8 14:55:48 CEST 2010
Dear Reinhard Meyer,
In message <4C875885.9020709 at emk-elektronik.de> you wrote:
>
> Not sure about that. I was thinking of a simple script that reads Linux'
> mach-types.h (or arch/arm/tools/mach-types directly) and generates the
> u-boot's mach-types.h file on the fly. That way only the #define lines could
> be generated, producing a less than 100k files instead of > 1MB.
I don't think mach-types.h is worth spending so much effort on it, and
coming up with another set of tools, incompatible to everything else
in the world.
> The same script would read the existing mach-types.h file, scanning for
> something like
>
> /* MANUAL ENTRIES START */
> #define MACH_TYPE_XYZ 4711
> #define MACH_TYPE_ABC 4712
> /* MANUAL ENTRIES END */
I will not accept this. It willonly result in people adding entries
that have not been registered so they cause conflicts sooner or later.
We have been there before, and it did not work. I will not go back
there.
> Otherwise:
>
> It essentially means one can send patches for a new ARM based board
> only if the MACH_TYPE has trickled through all the instances.
Right. But this should be no problem, as you can register your MACH_ID
as early as you want.
> This is, somehow, unpleasing:). We should not "punish" ourselves in u-boot
> just because someone has invented a method to prolong time-to-market ;)
Just react in a pro-active way and register your machines as soon as
you start working on the hardware design, and everything is well.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
History is only a confused heap of facts.
-- Philip Earl of Chesterfield
More information about the U-Boot
mailing list