]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Revert "simplify mipsel handling"
authorphcoder <phcoder@debian.bg45.phnet>
Sun, 18 Oct 2009 13:06:47 +0000 (15:06 +0200)
committerphcoder <phcoder@debian.bg45.phnet>
Sun, 18 Oct 2009 13:06:47 +0000 (15:06 +0200)
This reverts commit 3451c43f4938a20aee5a2c0d0fa17c29e40b989b.

Conflicts:

configure.ac

configure.ac
include/grub/mips/types.h

index f13cac52a7fdb45781205e64ff8342bdbb3a3336..abfcf92e78d403c267358aba813fe93392adff47 100644 (file)
@@ -46,7 +46,16 @@ AC_ARG_PROGRAM
 case "$target_cpu" in
   i[[3456]]86) target_cpu=i386 ;;
   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
 
 # Specify the platform (such as firmware).
index aed597451abf04e22de3f550426c82a7ef4958d0..fe09afa3ebece80f8921036b40b0c79febbb9bb1 100644 (file)
 /* The size of long.  */
 #define GRUB_TARGET_SIZEOF_LONG                4
 
-#ifdef __MIPSEL__
+#ifdef GRUB_CPU_MIPSEL
 /* mipsEL is little-endian.  */
 #undef GRUB_TARGET_WORDS_BIGENDIAN
-#else
+#elif defined (GRUB_CPU_MIPS)
 /* 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 */