From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 3 Dec 2016 18:47:42 -0500 Subject: [U-Boot] compiler.h: use u-boot endian macros on OpenBSD In-Reply-To: <20161126041800.22980-1-jsg@jsg.id.au> References: <20161126041800.22980-1-jsg@jsg.id.au> Message-ID: <20161203234742.GC4248@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 26, 2016 at 03:18:00PM +1100, Jonathan Gray wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: