]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/build.sh
Refine file header format to follow coding style.
[mirror_edk2.git] / OvmfPkg / build.sh
index e107eeae860afa9a382d68a7e55ab0f3880c56ff..28c7d3831343feb71a62d4ca8ef9c5a07110b5ad 100755 (executable)
@@ -67,8 +67,18 @@ case `uname` in
       fi
       ;;
   Linux*)
-    TARGET_TOOLS=GCC44
-    ;;
+    gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
+    case $gcc_version in
+      4.5.*)
+        TARGET_TOOLS=GCC45
+        ;;
+      4.6.*)
+        TARGET_TOOLS=GCC46
+        ;;
+      *)
+        TARGET_TOOLS=GCC44
+        ;;
+    esac
 esac
 
 #