imgtools/romtools/rombuild/rombuild.cpp
changeset 712 df89378e9223
parent 694 c3fbb20e86f0
child 713 7b7f0409fc00
equal deleted inserted replaced
697:818fe0ed324b 712:df89378e9223
    32 const TInt KRomLoaderHeaderEPOC=1;
    32 const TInt KRomLoaderHeaderEPOC=1;
    33 const TInt KRomLoaderHeaderCOFF=2;
    33 const TInt KRomLoaderHeaderCOFF=2;
    34 
    34 
    35 static const TInt RombuildMajorVersion=2;
    35 static const TInt RombuildMajorVersion=2;
    36 static const TInt RombuildMinorVersion=19;
    36 static const TInt RombuildMinorVersion=19;
    37 static const TInt RombuildPatchVersion=0;
    37 static const TInt RombuildPatchVersion=1;
    38 static TBool SizeSummary=EFalse;
    38 static TBool SizeSummary=EFalse;
    39 static TPrintType SizeWhere=EAlways;
    39 static TPrintType SizeWhere=EAlways;
    40 static string compareROMName = "";
    40 static string compareROMName = "";
    41 static TInt MAXIMUM_THREADS = 128;
    41 static TInt MAXIMUM_THREADS = 128;
    42 static TInt DEFAULT_THREADS = 8;
    42 static TInt DEFAULT_THREADS = 8;
   587 			return KErrGeneral;
   587 			return KErrGeneral;
   588 		}
   588 		}
   589 	}
   589 	}
   590 	
   590 	
   591 	if(gGenInc) {
   591 	if(gGenInc) {
   592  		Print(EAlways,"Generating include file for ROM image post-processors ");
   592  		
   593 		if( gPagedRom ) {
   593 		if(kernelRom != NULL) {
   594  			Print(EAlways,"Paged ROM");
   594 			Print(EAlways,"Generating include file for ROM image post-processors ");
   595 			GenerateIncludeFile((char*)mainObeyFile->iRomFileName, kernelRom->iHeader->iPageableRomStart, kernelRom->iHeader->iPageableRomSize);
   595 			if( gPagedRom ) {
       
   596  				Print(EAlways,"Paged ROM");
       
   597 				GenerateIncludeFile((char*)mainObeyFile->iRomFileName, kernelRom->iHeader->iPageableRomStart, kernelRom->iHeader->iPageableRomSize);
       
   598 			}
       
   599 			else {
       
   600  				Print(EAlways,"Unpaged ROM");
       
   601 				int headersize=(kernelRom->iExtensionRomHeader ? sizeof(TExtensionRomHeader) : sizeof(TRomHeader)) - sizeof(TRomLoaderHeader);
       
   602 				GenerateIncludeFile((char*)mainObeyFile->iRomFileName, kernelRom->iHeader->iCompressedSize + headersize, kernelRom->iHeader->iPageableRomSize);
       
   603 			}
   596 		}
   604 		}
   597 		else {
   605 		else {
   598  			Print(EAlways,"Unpaged ROM");
   606 			Print(EWarning,"Generating include file for ROM image igored because no Core ROM image generated.\n");
   599 			int headersize=(kernelRom->iExtensionRomHeader ? sizeof(TExtensionRomHeader) : sizeof(TRomHeader)) - sizeof(TRomLoaderHeader);
       
   600 			GenerateIncludeFile((char*)mainObeyFile->iRomFileName, kernelRom->iHeader->iCompressedSize + headersize, kernelRom->iHeader->iPageableRomSize);
       
   601 		}
   607 		}
   602 	}
   608 	}
   603 	
   609 	
   604 	do {
   610 	do {
   605  		CObeyFile* extensionObeyFile = 0;
   611  		CObeyFile* extensionObeyFile = 0;