Add check when copy flashMap.h to ${ModuleOutputDir}/Debug/TianoR8FlashMap.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1065 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f9d0ab9266
commit
31a9215c32
@ -2060,6 +2060,11 @@ public class AutoGen {
|
|||||||
int size = (int)inFile.length();
|
int size = (int)inFile.length();
|
||||||
byte[] buffer = new byte[size];
|
byte[] buffer = new byte[size];
|
||||||
File outFile = new File (this.outputPath + File.separatorChar + CommonDefinition.tianoR8FlashMapH);
|
File outFile = new File (this.outputPath + File.separatorChar + CommonDefinition.tianoR8FlashMapH);
|
||||||
|
//
|
||||||
|
// If TianoR8FlashMap.h existed and the flashMap.h don't change,
|
||||||
|
// do nothing.
|
||||||
|
//
|
||||||
|
if ((!outFile.exists()) ||(inFile.lastModified() - outFile.lastModified()) >= 0) {
|
||||||
try{
|
try{
|
||||||
if (inFile.exists()) {
|
if (inFile.exists()) {
|
||||||
FileInputStream fis = new FileInputStream (inFile);
|
FileInputStream fis = new FileInputStream (inFile);
|
||||||
@ -2074,7 +2079,6 @@ public class AutoGen {
|
|||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
throw new AutoGenException(e.getMessage());
|
throw new AutoGenException(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user