On Friday 02 April 2010 06:56:41 Michael Zaidman wrote:
> On Fri, Apr 2, 2010 at 11:52 AM, Mike Frysinger <[email protected]> wrote:
> > On Thursday 01 April 2010 13:16:53 Michael Zaidman wrote:
> >> The BUILD_BUG_ON macros made availible for rest of the u-boot code
> >> by moving it from ubi_uboot.h to common.h. In Linux kernel this
> >> widely used macros is defined in kernel.h file.
> > 
> > compiler.h might be a better place so that it is available to host tools
> > too
> 
> The common.h includes image.h which includes compiler.h, so
> technically it should works also.

you're looking the wrong direction.  host tools include compiler.h, they dont 
include common.h.

> I have a doubt however -  what about location of similar staff such as BUG,
> BUG_ON, debug, error, etc. Should it also be moved into compiler.h file?

many should not.  BUG_ON requires functions that only u-boot implements and 
are not available in host C libraries.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to