[U-Boot] [PATCH v2][RFC] Add native win32 mkimage support

Mike Frysinger vapier at gentoo.org
Fri Feb 6 22:40:47 CET 2009


On Friday 06 February 2009 16:22:01 Peter Tyser wrote:
> Add a mkimage_win32.exe build target which can produce a native
> win32 mkimage executable using the MinGW toolchain.  The
> mkimage_win32.exe binary is generated when the MINGW_COMPILE
> environment variable is defined.  The mkimage_win32.exe binary
> can be used by those who use Windows as an OS build environment
> but don't use cygwin.

having to set magic env vars for one specific target kind of sucks.  isnt 
there another way to do this ?

> +uint16_t bswap_16(uint16_t __x)
> +{
> +	return (__x >> 8) | (__x << 8);
> +}
> +
> +uint32_t bswap_32(uint32_t __x)
> +{
> +	return (bswap_16(__x & 0xffff) << 16) | (bswap_16(__x >> 16));
> +}
> +
> +uint64_t bswap_64(uint64_t __x)
> +{
> +	return (((uint64_t) bswap_32(__x & 0xffffffff)) << 32) |
> +		(bswap_32(__x >> 32));
> +}

we already have random duplicate copies of these floating around, and not 
related to Windows.  these funcs are really only reliable on Linux.  like the 
attached i'm using in my own tree.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-uswap.patch
Type: text/x-patch
Size: 1282 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090206/d235faee/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090206/d235faee/attachment.pgp 


More information about the U-Boot mailing list