simplify mipsel handling

This commit is contained in:
phcoder 2009-10-18 00:22:15 +02:00
parent a45337b5d7
commit fdb3c3acb0
2 changed files with 2 additions and 8 deletions

View file

@ -100,12 +100,8 @@ case "$target_cpu" in
i386 | powerpc) target_m32=1 ;; i386 | powerpc) target_m32=1 ;;
x86_64 | sparc64) target_m64=1 ;; x86_64 | sparc64) target_m64=1 ;;
mipsel) mipsel)
TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPSEL=1";
CFLAGS="$CFLAGS -DGRUB_CPU_MIPSEL=1";
target_cpu=mips ;; target_cpu=mips ;;
mips) mips)
TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPS=1";
CFLAGS="$CFLAGS -DGRUB_CPU_MIPS=1";
target_cpu=mips ;; target_cpu=mips ;;
esac esac

View file

@ -25,14 +25,12 @@
/* The size of long. */ /* The size of long. */
#define GRUB_TARGET_SIZEOF_LONG 4 #define GRUB_TARGET_SIZEOF_LONG 4
#ifdef GRUB_CPU_MIPSEL #ifdef __MIPSEL__
/* mipsEL is little-endian. */ /* mipsEL is little-endian. */
#undef GRUB_TARGET_WORDS_BIGENDIAN #undef GRUB_TARGET_WORDS_BIGENDIAN
#elif defined (GRUB_CPU_MIPS) #else
/* 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 */