]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/gcc/mingw-gcc-build.py
Sync BaseTool trunk (version r2601) into EDKII BaseTools.
[mirror_edk2.git] / BaseTools / gcc / mingw-gcc-build.py
index 4133feb25607d4c566f1c800d3c03ee8b631ed2d..420b3dea80f7976fab5067bccc1ad0d5a6aa0f24 100755 (executable)
@@ -6,8 +6,8 @@
 #   http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/trunk/mingw-w64-doc/
 #     howto-build/mingw-w64-howto-build.txt?revision=216&view=markup
 #
-# Copyright (c) 2008 - 2010, Intel Corporation
-# All rights reserved. This program and the accompanying materials
+# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
+# This program and the accompanying materials
 # are licensed and made available under the terms and conditions of the BSD License
 # which accompanies this distribution.    The full text of the license may be found at
 # http://opensource.org/licenses/bsd-license.php
@@ -222,27 +222,10 @@ class SourceFiles:
             'version': '4.3.0',
             'md5': '197ed8468b38db1d3481c3111691d85b',
             },
-        'mingw_hdr': {
-            'url': 'http://sourceforge.net/projects/' + \
-                   'mingw-w64/files/mingw-w64/mingw-w64-snapshot/' + \
-                   'mingw-w64-v1.0-snapshot-$version.tar.bz2/download',
-            'extract-dir': os.path.join('mingw-w64-v1.0-$version', 'mingw-w64-headers'),
-            'version': '20100223',
-            'md5': '700b9f54e740b1b962c8a3a0f52b7c04',
-            },
         }
 
     source_files_ia32 = {
         'gcc': source_files_x64['gcc'],
-        'mingw_hdr': {
-            'url': 'http://sourceforge.net/projects/' + \
-                   'mingw/files/MinGW%20Runtime/' + \
-                   'mingwrt-$version/' + \
-                   'mingwrt-$version-mingw32-src.tar.gz/download',
-            'extract-dir': 'mingwrt-$version-mingw32',
-            'version': '3.15.2',
-            'md5': '7bf0525f158213f3ac990ea68a5ec34d',
-            },
         }
 
     source_files_ipf = source_files_x64.copy()
@@ -303,7 +286,7 @@ class SourceFiles:
                     self.dots = 0
                     local_file = os.path.join(self.config.src_dir, fdata['filename'])
                     url = fdata['url']
-                   print 'Downloading %s:' % fname, url
+                    print 'Downloading %s:' % fname, url
                     if retries > 0:
                         print '(retry)',
                     sys.stdout.flush()
@@ -439,7 +422,6 @@ class Builder:
         if not self.config.options.skip_binutils:
             self.BuildModule('binutils')
         if not self.config.options.skip_gcc:
-            self.CopyIncludeDirectory()
             self.BuildModule('gcc')
             self.MakeSymLinks()
 
@@ -459,24 +441,6 @@ class Builder:
             "w"
             ).close()
 
-    def CopyIncludeDirectory(self):
-        linkdst = os.path.join(self.config.prefix, 'mingw')
-        src = os.path.join(
-            self.config.src_dir,
-            self.config.arch,
-            self.source_files.GetExtractDirOf('mingw_hdr'),
-            'include'
-            )
-        dst_parent = os.path.join(self.config.prefix, self.config.target_combo)
-        dst = os.path.join(dst_parent, 'include')
-        if not os.path.exists(dst):
-            if not os.path.exists(dst_parent):
-                os.makedirs(dst_parent)
-            print 'Copying headers to', self.config.Relative(dst)
-            shutil.copytree(src, dst, True)
-        if not os.path.lexists(linkdst):
-            print 'Making symlink at', self.config.Relative(linkdst)
-            os.symlink(self.config.target_combo, linkdst)
 
     def BuildModule(self, module):
         base_dir = os.getcwd()