Added code to check if FvDir exists or not because open() won't create file if the...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 07:20:37 +0000 (07:20 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 07:20:37 +0000 (07:20 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@895 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index dbcb182..45e9c74 100644 (file)
@@ -955,6 +955,8 @@ class Build():
                                     '_'.join((BuildTarget, ToolChain)),\r
                                     'FV'\r
                                     )\r
+                        if not os.path.exists(FvDir):\r
+                            continue \r
                         # Build up the list of supported architectures for this build\r
                         prefix = '%s_%s_%s_' % (BuildTarget, ToolChain, Arch)\r
 \r