From: Wolfgang Denk Date: Sun, 19 Jul 2009 21:42:03 +0200 Subject: [U-Boot] [PATCH v4] compiler.h: unify system ifdef cruft here In-Reply-To: <1246577005-10928-1-git-send-email-vapier@gentoo.org> References: <1245154542-9186-1-git-send-email-vapier@gentoo.org> <1246577005-10928-1-git-send-email-vapier@gentoo.org> Message-ID: <20090719194203.AD6B2832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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.