]> git.baikalelectronics.ru Git - uboot.git/commit
compiler.h: use u-boot endian macros on OpenBSD
authorJonathan Gray <jsg@jsg.id.au>
Sat, 26 Nov 2016 04:18:00 +0000 (15:18 +1100)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:38 +0000 (21:32 -0500)
commit233ca4e6952b2e11bb7d47dc35e6253797ab5cf6
tree18ac691ecb3f3d54be9dc2b524c7737b0af5e8a6
parent8208b15329a97cdd260a4907bed3d0a956eab86b
compiler.h: use u-boot endian macros on OpenBSD

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 <jsg@jsg.id.au>
include/compiler.h