OSX Big Endian patch for dfu-util

Frederic Leroy fredo at starox.org
Wed Jan 2 10:53:46 CET 2008


Le Wed, 02 Jan 2008 00:04:31 -0800,
Daniel Hembree <danny-hembree at dynamical.org> a écrit :

> this patch, applied to dfu-util's main.c, will enable OSX PPC
> machines so download to the neo1973.
> 
> 757,759c
>                         func_dfu.wTransferSize = 
> OSSwapInt16(func_dfu.wTransferSize);
> .
> 29,31c
> #include <libkern/OSByteOrder.h>
> .
> 
> 
> I followed the instructions supplied by Krzysztof Kajkowski at, 
> http://lists.openmoko.org/pipermail/community/2007-July/008438.html ,
> to download the source and compile it. Unfortunately, it was for i386 
> machines, persevering, I tried the above changes and was able to 
> download and use the latest openmoko and qtopia rootfs.  This was
> done on a G4 Titanium PB.
> 
> Happy New Year!
> 
> 

At least, you must check the platform ... maybe with : 

#if defined(__APPLE__) && defined (OSX)
...
#endif 

(Borrowed from gimp code ...)
I guess it is not sufficiant as there is x86 and ppc arch in OsX.

Happy new year :)

-- 
Frédéric Leroy



More information about the device-owners mailing list