]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Do CPU substitution even if it's specified explicitly.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 7 Jan 2011 23:44:38 +0000 (00:44 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 7 Jan 2011 23:44:38 +0000 (00:44 +0100)
Reported and tested by: Alain Greppin.

ChangeLog
configure.ac

index 984c3fc5a0951792d2128ae857bdca9ac2e201d2..5116604f52d55f077722bbd88c55e17cbeff1fea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Do CPU substitution even if it's specified explicitly.
+       Reported and tested by: Alain Greppin.
+
 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
index c013c9022c7ed045b07cfbf2a7c7f65749a7d931..8bb585a78a1f1839f66b9c5a36868d38d1fa283a 100644 (file)
@@ -103,15 +103,12 @@ else
   platform="$with_platform"
 fi
 
-# Adjust CPU unless target was explicitly specified.
-if test -z "$target_alias"; then
-  case "$target_cpu"-"$platform" in
-    x86_64-efi) ;;
-    x86_64-emu) ;;
-    x86_64-*) target_cpu=i386 ;;
-    powerpc64-ieee1275) target_cpu=powerpc ;;
-  esac
-fi
+case "$target_cpu"-"$platform" in
+  x86_64-efi) ;;
+  x86_64-emu) ;;
+  x86_64-*) target_cpu=i386 ;;
+  powerpc64-ieee1275) target_cpu=powerpc ;;
+esac
 
 # Check if the platform is supported, make final adjustments.
 case "$target_cpu"-"$platform" in