
Dear Mike Frysinger,
In message 1246577005-10928-1-git-send-email-vapier@gentoo.org you wrote:
Shove a lot of the HOSTCC and related #ifdef checking crap into the new compiler.h header so that we can keep all other headers nice and clean.
Also introduce custom uswap functions so we don't have to rely on the non standard implementations that a host may (or may not in the case of OS X) provide. This allows mkimage to finally build cleanly on an OS X system.
Signed-off-by: Mike Frysinger vapier@gentoo.org
this version has been tested with Blackfin targets on Linux, Darwin, and now MinGW host systems. needed a small fix in image.h to use the cpu funcs rather than ntoh/hton.
include/compiler.h | 125 +++++++++++++++++++++++++++++++++++++++++++++++++ include/elf.h | 10 +---- include/environment.h | 6 +-- include/image.h | 13 ++--- include/libfdt_env.h | 53 ++------------------- include/u-boot/md5.h | 2 +- lib_generic/md5.c | 8 +-- tools/bmp_logo.c | 13 +----- tools/img2srec.c | 3 +- tools/mingw_support.h | 3 - tools/mkimage.c | 14 ++---- tools/mkimage.h | 33 ------------- tools/os_support.c | 1 + tools/os_support.h | 2 + tools/ubsha1.c | 13 ----- 15 files changed, 150 insertions(+), 149 deletions(-) create mode 100644 include/compiler.h
Applied, thanks.
Best regards,
Wolfgang Denk