- Oct 27, 2014
-
-
Gabe Black authored
There's a definition in stdint.h (provided by gcc) which will be more correct if available. Define CONFIG_USE_STDINT to use this feature, or USE_STDINT=1 on the 'make' commmand. This adjusts the settings for x86 and sandbox, with both have 64-bit options. Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-by:
Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Reviewed-by:
Bill Richardson <wfrichar@google.com> Rewritten to be an option, since stdint.h is often available only in glibc. Changed to preserve a clear boundary between stdint and non-stdint Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 10, 2014
-
-
Jeroen Hofstee authored
Commit 832472 "tools: socfpga: Add socfpga preloader signing to mkimage" added tools/socfpga.c which relies on htole32, le32toh and friends. While compiler.h includes these protypes for linux from endian.h, it doesn't do so for FreeBSD. Hence include <sys/endian.h> for FreeBSD. Cc: Marek Vasut <marex@denx.de> CC: Tom Rini <trini@ti.com> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
- Sep 24, 2014
-
-
Jeroen Hofstee authored
Since clang has a different definition for uninitialized_var it will complain that it is redefined in include/compiler.h. Since these are already defined in linux/compiler.h just remove this instance. Cc: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Tom Rini <trini@ti.com> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
- Jul 22, 2014
-
-
Jeroen Hofstee authored
genimg_print_time uses time_t, but time.h is never included. Linux gets away with this since types.h includes time.h. Explicitly include the header file so building on e.g. FreeBSD also works. cc: Tom Rini <trini@ti.com> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
- Nov 22, 2011
-
-
Simon Glass authored
If uintptr_t can be either an unsigned int or an unsigned long int, it is tricky to use it in a printf() format string. This changes it to unsigned long int consistently. This should do the right thing on both 32-bit and 64-bit architectures. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Oct 17, 2011
-
-
Simon Glass authored
This sets __WORDSIZE to 8 correctly on 64-bit machines. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 28, 2011
-
-
Jeroen Hofstee authored
Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
- Oct 06, 2010
-
-
Andreas Bießmann authored
uint is typedefed twice if __MACH__ is defined. This generates an error when calling MAKEALL for netstar bord on OS X. This patch removes the typedef for __MACH__ case in favor of general definiton some lines below. Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com>
-
- Jun 20, 2010
-
-
Wolfgang Denk authored
Commit 37566090 "compiler.h: unify system ifdef cruft here" added both a "#include <errno.h>" and a "extern int errno;" to include/compiler.h which is causing build warnings for some systems, for example for the "netstar" board: In file included from /home/wd/git/u-boot/work/lib/crc32.c:15: include/compiler.h:28: warning: function declaration isn't a prototype The declaration of "errno" should be redundant, as <errno.h> is supposed to provide a correct declaration, so drop it. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Mike Frysinger <vapier@gentoo.org>
-
- May 05, 2010
-
-
Mike Frysinger authored
Recent crc changes started using the "uint" type in headers that are used on the build system. This subsequently broke mingw targets as they do not provide such a type. So add this basic typedef to compiler.h so that we do not have to worry about this breaking again in the future. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jan 17, 2010
-
-
Matthias Kaehlcke authored
the macros likely and unlikely were defined in include/linux/mtd/compat.h, but used in code not related to MTD. moved the macro definitions to compiler.h Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net>
-
- Oct 03, 2009
-
-
Anton Vorontsov authored
This is needed so that we could use this macro for non-UBI code. Signed-off-by:
Anton Vorontsov <avorontsov@ru.mvista.com>
-
- Sep 04, 2009
-
-
Anton Vorontsov authored
This is needed so that we could use this macro for non-UBI code. Signed-off-by:
Anton Vorontsov <avorontsov@ru.mvista.com>
-
- Jul 19, 2009
-
-
Mike Frysinger authored
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>
-