]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
simplify mipsel handling
authorphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:22:15 +0000 (00:22 +0200)
committerphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:22:15 +0000 (00:22 +0200)
configure.ac
include/grub/mips/types.h

index 98750280e4806f28f482bb456e741a1d079267b9..f0aeb1aa85040f501b57a00b927578ef235e3b24 100644 (file)
@@ -100,12 +100,8 @@ case "$target_cpu" in
   i386 | powerpc) target_m32=1 ;;
   x86_64 | sparc64) target_m64=1 ;;
   mipsel) 
-    TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPSEL=1"; 
-    CFLAGS="$CFLAGS -DGRUB_CPU_MIPSEL=1";
     target_cpu=mips ;;
   mips) 
-    TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPS=1"; 
-    CFLAGS="$CFLAGS -DGRUB_CPU_MIPS=1";
     target_cpu=mips ;;
 esac
 
index fe09afa3ebece80f8921036b40b0c79febbb9bb1..aed597451abf04e22de3f550426c82a7ef4958d0 100644 (file)
 /* The size of long.  */
 #define GRUB_TARGET_SIZEOF_LONG                4
 
-#ifdef GRUB_CPU_MIPSEL
+#ifdef __MIPSEL__
 /* mipsEL is little-endian.  */
 #undef GRUB_TARGET_WORDS_BIGENDIAN
-#elif defined (GRUB_CPU_MIPS)
+#else
 /* mips is big-endian.  */
 #define GRUB_TARGET_WORDS_BIGENDIAN
-#elif !defined (GRUB_SYMBOL_GENERATOR)
-#error Neither GRUB_CPU_MIPS nor GRUB_CPU_MIPSEL is defined
 #endif
 
 #endif /* ! GRUB_TYPES_CPU_HEADER */