[U-Boot] [PATCH] image: push default arch values to arch headers

Mike Frysinger vapier at gentoo.org
Mon Sep 26 18:09:46 CEST 2011


On Monday, September 26, 2011 02:08:51 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > This pushes the ugly duplicated arch ifdef lists we maintain in various
> > image related files out to the arch headers themselves.
> 
> I appreciate this change in general, but ...
> 
> ...
> 
> > -#else
> > -# error Unknown CPU type
> > -#endif
> > -		return 0;
> > -
> > -	return 1;
> > +	return !fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT));
> 
> ...here you change a compile time error check into a runtim error.

no, it'll still be a build time error as IH_ARCH_DEFAULT will be undefined

it just might not be as clean an error ... gcc will complain about 
IH_ARCH_DEFAULT not being defined rather than a helpful "Unknown CPU type" 
message.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110926/b156156c/attachment.pgp 


More information about the U-Boot mailing list