18 Jan, 2020
1 commit
-
This is not really a CONFIG since it is not intended to be set by boards.
Move it into the compiler header with other similar defines, and rename
it.Signed-off-by: Simon Glass
03 Jan, 2020
1 commit
-
The build failure was originally reported on arm64-musl
target at https://bugs.gentoo.org/703132. Here is the amd64-musl
variant:```
$ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-only_defconfig -j$(nproc)
$ LANG=C make CROSS_COMPILE=x86_64-gentoo-linux-musl- tools-all -j$(nproc)
...
In file included from tools/env/../../env/flags.c:7,
from tools/env/env_flags.c:1:
include/env.h:159:1: error: unknown type name 'ulong'; did you mean 'long'?
159 | ulong env_get_ulong(const char *name, int base, ulong default_val);
| ^~~~~
| long
```Note: 'ulong' is not defined there.
On glibc 'ulong' comes from :
```c
/* Old compatibility names for C types. */
typedef unsigned long int ulong;
```On musl it comes from as well but from under different guards:
```c
typedef unsigned long u_long, ulong;
```The change inlines 'ulong' define similar to 'uint' define.
Bug: https://bugs.gentoo.org/703132
Signed-off-by: Sergei Trofimovich
11 Sep, 2018
1 commit
-
You do not need to use the typedefs provided by compiler.
Our compilers are either IPL32 or LP64. Hence, U-Boot can/should
always use int-ll64.h typedefs like Linux kernel, whatever the
typedefs the compiler internally uses.Signed-off-by: Masahiro Yamada
06 Feb, 2018
1 commit
-
FreeBSD, like OpenBSD, uses BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER,
whereas Linux and compatibles use __-prefixed names. Define the names
the same as the OpenBSD block below it.
03 Dec, 2016
1 commit
-
When building u-boot on sparc64 and powerpc hosts it became clear that
u-boot expects endian conversion defines to be macros:lib/crc32.c:87: error: braced-group within expression allowed only inside a function
For OpenBSD switch from using system definitions equivalent to the u-boot ones
and define glibc __BYTE_ORDER __BIG_ENDIAN __LITTLE_ENDIAN names, as at least
some parts of the non-cross build assumes those names are present (ie crc32.c).Signed-off-by: Jonathan Gray
07 Sep, 2016
1 commit
-
The u-boot endian macros map directly to system endian
macros on OpenBSD.Signed-off-by: Jonathan Gray
16 Dec, 2015
1 commit
-
This reverts commit e8f954a756a825130d11b9c8fca70101dd8b3ac5, which
causes compiling errors on 32-bit hosts.Acked-by: Aneesh Bansal
Signed-off-by: York Sun
15 Dec, 2015
1 commit
-
uintptr_t which is a typdef for unsigned long is needed for creating
pointers (32 or 64 bit depending on Core) from 32 bit variables
storing the address.
If a 32 bit variable (u32) is typecasted to a pointer (void *),
compiler gives a warning in case size of pointer on the core is 64 bit.The typdef has been moved from include/compiler.h to include/linux/types.h
Signed-off-by: Aneesh Bansal
Reviewed-by: York Sun
27 Oct, 2014
1 commit
-
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
Reviewed-by: Gabe Black
Tested-by: Gabe Black
Reviewed-by: Bill Richardson
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
11 Oct, 2014
1 commit
-
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 for FreeBSD.Cc: Marek Vasut
CC: Tom Rini
Signed-off-by: Jeroen Hofstee
25 Sep, 2014
1 commit
-
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
Cc: Tom Rini
Signed-off-by: Jeroen Hofstee
22 Jul, 2014
1 commit
-
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
Signed-off-by: Jeroen Hofstee
22 Nov, 2011
1 commit
-
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
Acked-by: Mike Frysinger
18 Oct, 2011
1 commit
-
This sets __WORDSIZE to 8 correctly on 64-bit machines.
Signed-off-by: Simon Glass
29 Jul, 2011
1 commit
-
Signed-off-by: Jeroen Hofstee
07 Oct, 2010
1 commit
-
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
20 Jun, 2010
1 commit
-
Commit 37566090 "compiler.h: unify system ifdef cruft here" added both
a "#include " 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 prototypeThe declaration of "errno" should be redundant, as is
supposed to provide a correct declaration, so drop it.Signed-off-by: Wolfgang Denk
Cc: Mike Frysinger
06 May, 2010
1 commit
-
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
18 Jan, 2010
1 commit
-
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.hSigned-off-by: Matthias Kaehlcke
05 Sep, 2009
1 commit
-
This is needed so that we could use this macro for non-UBI code.
Signed-off-by: Anton Vorontsov
20 Jul, 2009
1 commit
-
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