Revert "simplify mipsel handling"
This reverts commit 3451c43f4938a20aee5a2c0d0fa17c29e40b989b. Conflicts: configure.ac
This commit is contained in:
parent
a9a6948ac3
commit
4a1eefb623
2 changed files with 14 additions and 3 deletions
11
configure.ac
11
configure.ac
|
@ -46,7 +46,16 @@ AC_ARG_PROGRAM
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
i[[3456]]86) target_cpu=i386 ;;
|
i[[3456]]86) target_cpu=i386 ;;
|
||||||
sparc) target_cpu=sparc64 ;;
|
sparc) target_cpu=sparc64 ;;
|
||||||
mipsel) target_cpu=mips ;;
|
mipsel)
|
||||||
|
target_cpu=mips;
|
||||||
|
TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPSEL=1";
|
||||||
|
CFLAGS="$CFLAGS -DGRUB_CPU_MIPSEL=1";
|
||||||
|
;;
|
||||||
|
mips)
|
||||||
|
target_cpu=mips;
|
||||||
|
TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPS=1";
|
||||||
|
CFLAGS="$CFLAGS -DGRUB_CPU_MIPS=1";
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Specify the platform (such as firmware).
|
# Specify the platform (such as firmware).
|
||||||
|
|
|
@ -25,12 +25,14 @@
|
||||||
/* The size of long. */
|
/* The size of long. */
|
||||||
#define GRUB_TARGET_SIZEOF_LONG 4
|
#define GRUB_TARGET_SIZEOF_LONG 4
|
||||||
|
|
||||||
#ifdef __MIPSEL__
|
#ifdef GRUB_CPU_MIPSEL
|
||||||
/* mipsEL is little-endian. */
|
/* mipsEL is little-endian. */
|
||||||
#undef GRUB_TARGET_WORDS_BIGENDIAN
|
#undef GRUB_TARGET_WORDS_BIGENDIAN
|
||||||
#else
|
#elif defined (GRUB_CPU_MIPS)
|
||||||
/* mips is big-endian. */
|
/* mips is big-endian. */
|
||||||
#define GRUB_TARGET_WORDS_BIGENDIAN
|
#define GRUB_TARGET_WORDS_BIGENDIAN
|
||||||
|
#elif !defined (GRUB_SYMBOL_GENERATOR)
|
||||||
|
#error Neither GRUB_CPU_MIPS nor GRUB_CPU_MIPSEL is defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* ! GRUB_TYPES_CPU_HEADER */
|
#endif /* ! GRUB_TYPES_CPU_HEADER */
|
||||||
|
|
Loading…
Reference in a new issue