Automatic cross-compiler flags

Detect cross-compiling flags (CROSSCFLAGS) automatically based on endian
and word size differences.



git-svn-id: svn://coreboot.org/openbios/openbios-devel@66 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-07-18 21:35:55 +00:00
parent 2d78d46b11
commit b623837257
9 changed files with 3 additions and 33 deletions

View File

@@ -14,30 +14,6 @@
* unchanged memory access for performance.
*/
#if 0
// This is being moved to rules.xml for now.
#ifdef FCOMPILER
/* FIXME these should be automatically determinded.
* Manually setting them here is a PITA.
*/
#define NATIVE_BITWIDTH_LARGER_THAN_HOST_BITWIDTH
//#define NATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH
//#define NATIVE_BITWIDTH_SMALLER_THAN_HOST_BITWIDTH
//#define SWAP_ENDIANNESS
#undef SWAP_ENDIANNESS
#else /* FCOMPILER */
#define NATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH
#undef SWAP_ENDIANNESS
#endif
#endif
/* byte swapping */
#ifndef SWAP_ENDIANNESS