diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-05 21:11:56 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-05 21:11:56 +0000 |
commit | 772d3214e9e4db0f96e07063fb69690cdd633d52 (patch) | |
tree | e07b853a8cce08742ff646b65d2954e58ffb3fbf /BaseTools/gcc | |
parent | f721ae46cbd1f5b6fbf38b6e70591c7d0d3cc6f7 (diff) | |
download | edk2-772d3214e9e4db0f96e07063fb69690cdd633d52.tar.gz edk2-772d3214e9e4db0f96e07063fb69690cdd633d52.tar.bz2 edk2-772d3214e9e4db0f96e07063fb69690cdd633d52.zip |
Update links for broken urls in BaseTools/gcc/mingw-gcc-build.py script.
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
Diffstat (limited to 'BaseTools/gcc')
-rwxr-xr-x[-rw-r--r--] | BaseTools/gcc/mingw-gcc-build.py | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/BaseTools/gcc/mingw-gcc-build.py b/BaseTools/gcc/mingw-gcc-build.py index 73eb3de0df..0f1f0d313b 100644..100755 --- a/BaseTools/gcc/mingw-gcc-build.py +++ b/BaseTools/gcc/mingw-gcc-build.py @@ -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: |