[U-Boot] [PATCH v4] compiler.h: unify system ifdef cruft here

Wolfgang Denk wd at denx.de
Sun Jul 19 21:42:03 CEST 2009


Dear Mike Frysinger,

In message <1246577005-10928-1-git-send-email-vapier at 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 at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Always borrow money from a pessimist; they don't expect  to  be  paid
back.


More information about the U-Boot mailing list