imgtools/romtools/rombuild/r_global.cpp
changeset 0 044383f39525
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * Global Variables Definition
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "r_global.h"
       
    21 
       
    22 TUint32 TheRomMem=0;
       
    23 TUint32 TheRomLinearAddress=0;
       
    24 ImpTRomHeader *TheRomHeader=0;
       
    25 TCpu CPU=ECpuUnknown;
       
    26 TBool Unicode=ETrue;
       
    27 TBool gLittleEndian=ETrue;
       
    28 TUint TraceMask=0;
       
    29 TBool TypeSafeLink=EFalse;
       
    30 TInt gHeaderType=-1;
       
    31 TInt gPagedRom=0;
       
    32 TInt gCodePagingOverride=-1; 
       
    33 TInt gDataPagingOverride=-1;
       
    34 TBool gPlatSecEnforcement=0;
       
    35 TBool gPlatSecDiagnostics=0;
       
    36 TBool gPlatSecEnforceSysBin=0;
       
    37 TBool gSortedRomFs=ETrue;
       
    38 TBool gEnableCompress=EFalse;		// Default to uncompressed ROM image
       
    39 TBool gFastCompress = EFalse;   // Default to compress most
       
    40 TUint gCompressionMethod=0; // Default compression method
       
    41 
       
    42 TBool gCompressUnpaged=EFalse; // Default to not compress un-paged part of ROM Image
       
    43 TUint gCompressUnpagedMethod=0;// Default compression method for un-paged part of ROM Image
       
    44 
       
    45 SCapabilitySet gPlatSecDisabledCaps={{0}}; 
       
    46 SCapabilitySet gPlatSecAllCaps={{0}};
       
    47 SDemandPagingConfig gDemandPagingConfig={0,0,0,{0}}; 
       
    48 TBool gGenInc=EFalse;	// Default to no generate INC file.  DEF095619
       
    49 TInt gLogLevel=0;  // Information is logged based on logging level.
       
    50 					// The default is 0. So all the existing logs are generated as if gLogLevel == 0.
       
    51 					// If any extra information is required, the log level must be appropriately supplied.
       
    52 					// Currrently, file details in ROM (like, file name in ROM & host, file size, whether 
       
    53 					// the file is hidden etc) are logged when gLogLevel >= 1.
       
    54 
       
    55 TBool gEnableStdPathWarning=EFalse; // To generate warning if the destination path is not a standard path. Default is not to warn.
       
    56 
       
    57 TBool gLowMem = EFalse;
       
    58 TBool gUseCoreImage = EFalse;
       
    59 TText* gImageFilename = 0;
       
    60 
       
    61 TInt gBootstrapSize=0;			// To calculate uncompressed un-paged size CR1258
       
    62 TInt gPageIndexTableSize=0;		// To calculate uncompressed un-paged size CR1258