]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update links for broken urls in BaseTools/gcc/mingw-gcc-build.py script.
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Aug 2009 21:11:56 +0000 (21:11 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Aug 2009 21:11:56 +0000 (21:11 +0000)
The new version of mingw-w64-snapshot-20090419.tar.bz2
requires a modification to
  IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h
in order to build successfully with the new mingw header files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9027 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/gcc/mingw-gcc-build.py [changed mode: 0644->0755]
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/UefiLzma.h

old mode 100644 (file)
new mode 100755 (executable)
index 73eb3de..0f1f0d3
@@ -19,6 +19,13 @@ try:
 except Exception:
     from md5 import md5
 
+if sys.version_info < (2, 5):
+    #
+    # This script (and edk2 BaseTools) require Python 2.5 or newer
+    #
+    print 'Python version 2.5 or later is required.'
+    sys.exit(-1)
+
 #
 # Version and Copyright
 #
@@ -174,33 +181,25 @@ class SourceFiles:
             'md5': '197ed8468b38db1d3481c3111691d85b',
             },
         'mingw_hdr': {
-            'url': 'http://superb-west.dl.sourceforge.net/sourceforge/' + \
-                   'mingw-w64/mingw-w64-snapshot-$version.tar.bz2',
+            'url': 'http://downloads.sourceforge.net/project/' + \
+                   'mingw-w64/mingw-w64/mingw-w64-snapshot/' + \
+                   'mingw-w64-snapshot-$version.tar.bz2',
             'extract-dir': os.path.join('trunk', 'mingw-w64-headers'),
-            'version': '20080310',
-            'md5': '235b2d15c2411f7d213c0c0977b2162f',
+            'version': '20090419',
+            'md5': '9146ecfabaf172e4cc427b88e8d218c1',
             },
         }
 
     source_files_ia32 = {
-        'gcc': {
-            'url': 'http://superb-east.dl.sourceforge.net/sourceforge/' + \
-                   'mingw/gcc-$version-mingw-$minor_version-src.tar.gz',
-            'version': '4.3.0',
-            'minor_version': 'alpha-20080403',
-            'extract-dir': 'gcc-$version',
-            'md5': '27961d80e304f4ef32c980833c6e8e44',
-            'configure-params': ('--with-gnu-as', '--with-gnu-ld', '--with-newlib',
-                                 '--verbose', '--disable-libssp', '--disable-nls',
-                                 '--enable-languages=c,c++'
-                                )
-            },
+        'gcc': source_files_x64['gcc'],
         'mingw_hdr': {
-            'url': 'http://superb-west.dl.sourceforge.net/sourceforge/' + \
-                   'mingw/mingw-runtime-$version-src.tar.gz',
-            'extract-dir': 'mingw-runtime-$version',
-            'version': '3.14',
-            'md5': '7d049a8331efcfe34600c0cda6934ac6',
+            'url': 'http://downloads.sourceforge.net/project/' + \
+                   'mingw/MinGW%20Runtime/' + \
+                   'Current%20Release_%20mingwrt-$version/' + \
+                   'mingwrt-$version-mingw32-src.tar.gz',
+            'extract-dir': 'mingwrt-$version-mingw32',
+            'version': '3.15.2',
+            'md5': '7bf0525f158213f3ac990ea68a5ec34d',
             },
         }
 
@@ -255,7 +254,7 @@ class SourceFiles:
                     sys.stdout.flush()
                     self.dots += 1
 
-        maxRetries = 3
+        maxRetries = 1
         for (fname, fdata) in self.source_files.items():
             for retries in range(maxRetries):
                 try:
@@ -300,6 +299,13 @@ class SourceFiles:
                         break
                     else:
                         print '[failed]'
+                        print '  Tried to retrieve', url
+                        print '  to', local_file
+                        print 'Possible fixes:'
+                        print '* If you are behind a web-proxy, try setting the',
+                        print 'http_proxy environment variable'
+                        print '* You can try to download this file separately',
+                        print 'and rerun this script'
                         raise Exception()
                 
                 except KeyboardInterrupt:
index b4fd6c75e6fc9134b987c3e09ee4f2c52c816f17..5b078525b9442f9837978a90784f2032ce662c88 100644 (file)
 #undef _WIN32\r
 #endif\r
 \r
+#ifndef _SIZE_T_DEFINED\r
 #if !defined(_WIN64) || defined(__GNUC__)\r
 typedef unsigned int size_t;\r
 #endif\r
+#endif\r
 \r
 #ifdef _WIN64\r
 #undef _WIN64\r
 #endif\r
 \r
+#ifndef _PTRDIFF_T_DEFINED\r
 typedef int ptrdiff_t;\r
+#endif\r
 \r
 #define memcpy CopyMem\r
 #define memmove CopyMem\r