+ #\r
+ # If Section Type is BINARY_FILE_TYPE_RAW\r
+ #\r
+ elif SectionType == BINARY_FILE_TYPE_RAW:\r
+ """If File List is empty"""\r
+ if FileList == []:\r
+ if self.Optional == True:\r
+ GenFdsGlobalVariable.VerboseLogger("Optional Section don't exist!")\r
+ return [], None\r
+ else:\r
+ EdkLogger.error("GenFds", GENFDS_ERROR, "Output file for %s section could not be found for %s" % (SectionType, InfFileName))\r
+\r
+ elif len(FileList) > 1:\r
+ EdkLogger.error("GenFds", GENFDS_ERROR,\r
+ "Files suffixed with %s are not allowed to have more than one file in %s[Binaries] section" % (\r
+ self.FileExtension, InfFileName))\r
+ else:\r
+ for File in FileList:\r
+ File = GenFdsGlobalVariable.MacroExtend(File, Dict)\r
+ OutputFileList.append(File)\r