Revision: 15860
http://sourceforge.net/p/edk2/code/15860
Author: yingke
Date: 2014-08-21 01:39:18 +0000 (Thu, 21 Aug 2014)
Log Message:
-----------
1. AutoGen.c should be generated if it is not empty even if there are no C
source files.
2. If there are sub directories in current module, the corresponding directory
in OUTPUT should be created.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <[email protected]>
Reviewed-by: Chen, Hesheng <[email protected]>
Reviewed-by: Feng, Bob C <[email protected]>
Modified Paths:
--------------
trunk/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py
Modified: trunk/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py
===================================================================
--- trunk/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py 2014-08-20
23:20:54 UTC (rev 15859)
+++ trunk/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py 2014-08-21
01:39:18 UTC (rev 15860)
@@ -2491,6 +2491,9 @@
self._BuildTargets = {}
self._FileTypes = {}
+ SubDirectory = os.path.join(self.OutputDir, File.SubDir)
+ if not os.path.exists(SubDirectory):
+ CreateDirectory(SubDirectory)
LastTarget = None
RuleChain = []
SourceList = [File]
@@ -2604,7 +2607,7 @@
AutoGenH = TemplateString()
StringH = TemplateString()
GenC.CreateCode(self, AutoGenC, AutoGenH, StringH,
UniStringAutoGenC, UniStringBinBuffer)
- if str(AutoGenC) != "" and TAB_C_CODE_FILE in self.FileTypes:
+ if str(AutoGenC) != "":
AutoFile = PathClass(gAutoGenCodeFileName, self.DebugDir)
self._AutoGenFileList[AutoFile] = str(AutoGenC)
self._ApplyBuildRule(AutoFile, TAB_UNKNOWN_FILE)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits