## @file\r
# preprocess source file\r
#\r
-# Copyright (c) 2007 - 2010, Intel Corporation\r
+# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
#\r
-# All rights reserved. This program and the accompanying materials\r
+# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
def CreateCCodeDB(FileNameList):\r
FileObjList = []\r
ParseErrorFileList = []\r
-\r
+ ParsedFiles = {}\r
for FullName in FileNameList:\r
if os.path.splitext(FullName)[1] in ('.h', '.c'):\r
+ if FullName.lower() in ParsedFiles:\r
+ continue\r
+ ParsedFiles[FullName.lower()] = 1\r
EdkLogger.info("Parsing " + FullName)\r
model = FullName.endswith('c') and DataClass.MODEL_FILE_C or DataClass.MODEL_FILE_H\r
collector = CodeFragmentCollector.CodeFragmentCollector(FullName)\r