Content += GenHeaderCommentSection(ModuleAbstract,\r
ModuleDescription,\r
ModuleCopyright,\r
- ModuleLicense)\r
+ ModuleLicense).replace('\r\n', '\n')\r
\r
#\r
# Generate Binary Header \r
#\r
# generate [Defines] section\r
#\r
+ LeftOffset = 31\r
Content = ''\r
NewSectionDict = {}\r
+\r
for UserExtension in ModuleObject.GetUserExtensionList():\r
DefinesDict = UserExtension.GetDefinesDict()\r
if not DefinesDict:\r
continue\r
for Statement in DefinesDict:\r
+ if Statement.split(DT.TAB_EQUAL_SPLIT) > 1:\r
+ Statement = (u'%s ' % Statement.split(DT.TAB_EQUAL_SPLIT, 1)[0]).ljust(LeftOffset) \\r
+ + u'= %s' % Statement.split(DT.TAB_EQUAL_SPLIT, 1)[1].lstrip()\r
SortedArch = DT.TAB_ARCH_COMMON\r
if Statement.strip().startswith(DT.TAB_INF_DEFINES_CUSTOM_MAKEFILE):\r
pos = Statement.find(DT.TAB_VALUE_SPLIT)\r
else:\r
NewSectionDict[SortedArch] = [Statement]\r
SpecialStatementList = []\r
- #\r
- # Add INF_VERSION statement firstly\r
- #\r
- \r
- LeftOffset = 31\r
+\r
# TAB_INF_DEFINES_INF_VERSION\r
Statement = (u'%s ' % DT.TAB_INF_DEFINES_INF_VERSION).ljust(LeftOffset) + u'= %s' % '0x00010017'\r
SpecialStatementList.append(Statement)\r