## @file DecPomAlignment.py\r
# This file contained the adapter for convert INF parser object to POM Object\r
#\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
from Library.DataType import TAB_STR_TOKENERR\r
from Library.DataType import TAB_HEX_START\r
from Library.DataType import TAB_SPLIT\r
+import Library.DataType as DT\r
from Library.CommentParsing import ParseHeaderCommentSection\r
from Library.CommentParsing import ParseGenericComment\r
from Library.CommentParsing import ParseDecPcdGenericComment\r
self.SetUserExtensionList(\r
self.GetUserExtensionList() + [UserExtension]\r
)\r
+\r
+ # Add Private sections to UserExtension\r
+ if self.DecParser.GetPrivateSections():\r
+ PrivateUserExtension = UserExtensionObject()\r
+ PrivateUserExtension.SetStatement(self.DecParser.GetPrivateSections())\r
+ PrivateUserExtension.SetIdentifier(DT.TAB_PRIVATE)\r
+ PrivateUserExtension.SetUserID(DT.TAB_INTEL)\r
+ self.SetUserExtensionList(self.GetUserExtensionList() + [PrivateUserExtension])\r
\r
## Generate miscellaneous files on DEC file\r
#\r