deprecated/buildtools/romkiteka2/include/HEADER.IBY
changeset 664 44b0e894b7ab
parent 655 3f65fd25dfd4
equal deleted inserted replaced
654:7c11c3d8d025 664:44b0e894b7ab
       
     1 /*
       
     2 * Copyright (c) 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 "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 *
       
    16 */
       
    17 #ifndef __HEADER_IBY__
       
    18 #define __HEADER_IBY__
       
    19 
       
    20 unicode
       
    21 
       
    22 romsize=0x##ROMMEGS##00000
       
    23 time=ROMDATE 12:00:00
       
    24 
       
    25 #ifdef CDMA
       
    26 define CDMA_SUFFIX _cdma
       
    27 #else
       
    28 define CDMA_SUFFIX ## 		// nothing
       
    29 #endif
       
    30 
       
    31 #ifdef _NAND
       
    32 define NAND_SUFFIX .nand
       
    33 #else
       
    34 define NAND_SUFFIX ##		// nothing
       
    35 #endif
       
    36 
       
    37 #if (defined _NAND2 || defined _ONENAND)
       
    38 define NAND_SUFFIX .nand
       
    39 #endif
       
    40 
       
    41 #ifdef SYMBIAN_FEATURE_MANAGER
       
    42 defaultfeaturedb = epoc32\rom\include\featuredatabase.xml 
       
    43 #endif
       
    44 
       
    45 romname=##VARIANT##_##BUILDNO##LANGID##.##OBEYFILE##CDMA_SUFFIX##NAND_SUFFIX.IMG
       
    46 
       
    47 #ifdef _NAND
       
    48 ECHO Preparing NAND core image with associated ROFS image
       
    49 
       
    50 #ifndef _ROFS_SIZE
       
    51 #define _ROFS_SIZE	32000000	// 32 Meg default
       
    52 #endif
       
    53 define ROFS_SIZE	_ROFS_SIZE
       
    54 
       
    55 compress
       
    56 rom_image 1 rofs size=ROFS_SIZE non-xip compress
       
    57 
       
    58 #endif
       
    59 
       
    60 
       
    61 #if (defined _NAND2 || defined _ONENAND)
       
    62 ECHO Preparing NAND core image with associated ROFS image
       
    63 
       
    64 #ifndef _ROFS_SIZE
       
    65 #define _ROFS_SIZE	32000000	// 32 Meg default
       
    66 #endif
       
    67 define ROFS_SIZE	_ROFS_SIZE
       
    68 
       
    69 compress
       
    70 rom_image 1 rofs size=ROFS_SIZE non-xip compress
       
    71 
       
    72 #endif
       
    73 
       
    74 REM ROM version number
       
    75 
       
    76 version=##VERSION##(##BUILDNO##)
       
    77 
       
    78 #ifdef _FULL_DEBUG
       
    79 #ifndef _DEBUG
       
    80 #define _DEBUG // _FULL_DEBUG implies _DEBUG
       
    81 #endif
       
    82 define BUILD_DIR udeb
       
    83 #else
       
    84 define BUILD_DIR urel
       
    85 #endif
       
    86 
       
    87 #ifdef _DEBUG
       
    88 define DEBUG_DIR udeb
       
    89 #else
       
    90 define DEBUG_DIR urel
       
    91 #endif
       
    92 
       
    93 #ifndef _EABI
       
    94 #  ifdef _ARM4
       
    95 #    define _EABI ARM4
       
    96 	 ECHO Defaulting to ARM4
       
    97 #  elif defined(_ARMV5)
       
    98 #    define _EABI ARMV5
       
    99 	 ECHO Defaulting to ARMV5
       
   100 #  elif defined _X86GCC
       
   101 #    define _EABI x86gcc
       
   102 #  endif
       
   103 #endif
       
   104 
       
   105 #  ifdef _PLAT
       
   106 #    undef _EABI
       
   107 #    define _EABI _PLAT
       
   108 	 ECHO Defaulting to _EABI
       
   109 #  endif
       
   110 
       
   111 #  ifdef _GCCE
       
   112 #    undef _EABI
       
   113 #    define _EABI GCCE
       
   114 #  elif defined(ABIV2) || defined(ABIv2)
       
   115 #    undef _EABI
       
   116 #    define _EABI ARMV5_ABIV2
       
   117 #  endif
       
   118 
       
   119 // This is to include ABIV2 specific runtime libraries. This inclusion
       
   120 // in other obey files depends on the definition of RVCT
       
   121 #ifdef _GCCE
       
   122 # define RVCT
       
   123 #endif
       
   124 
       
   125 define ABI_DIR    EPOCROOT##epoc32\release\##_EABI
       
   126 
       
   127 #ifndef _KABI
       
   128 #define _KABI _EABI
       
   129 #endif
       
   130 
       
   131 define KERNEL_DIR   EPOCROOT##epoc32\release\##_KABI
       
   132 
       
   133 define DATAZ_     EPOCROOT##epoc32\data\Z     
       
   134 define ZSYSTEM    DATAZ_\System
       
   135 define ZPRIVATE   DATAZ_\Private
       
   136 define ZRESOURCE  DATAZ_\Resource
       
   137 
       
   138 define DATAC_     EPOCROOT##epoc32\data\C    
       
   139 define CSYSTEM    DATAC_\System    
       
   140 
       
   141 // default location of executables
       
   142 define SYSTEM_BINDIR  System\Libs		// will be Sys\Bin for Secure platform
       
   143 
       
   144 
       
   145 // Support for ECOM_PLUGIN
       
   146 // Format is ECOM_PLUGIN(<DLL Name>,<Resource File Name>)
       
   147 // e.g. ECOM_PLUGIN(foo.dll,12345abc.rsc)
       
   148 
       
   149 define ECOM_RSC_DIR Resource\Plugins
       
   150 define ECOM_BIN_DIR Sys\Bin
       
   151 
       
   152 
       
   153 // __ECOM_PLUGIN(emulator directory, file rom dir, dataz_, resource rom dir, filename, resource filename)
       
   154 #define ECOM_PLUGIN(file,resource) __ECOM_PLUGIN(ABI_DIR\BUILD_DIR,ECOM_BIN_DIR,DATAZ_,ECOM_RSC_DIR,file,file)
       
   155 #define ECOM_PLUGIN_UDEB(file,resource) __ECOM_PLUGIN(ABI_DIR\UDEB,ECOM_BIN_DIR,DATAZ_,ECOM_RSC_DIR,file,file)
       
   156 
       
   157 // Support for HIDE_ECOM_PLUGIN
       
   158 // Format is HIDE_ECOM_PLUGIN(<DLL Name>,<Resource File Name>)
       
   159 // e.g. HIDE_ECOM_PLUGIN(foo.dll,12345abc.rsc)
       
   160 
       
   161 // _HIDE__ECOM_PLUGIN(emulator directory, file rom dir, dataz_, resource rom dir, filename, resource filename)
       
   162 #define HIDE_ECOM_PLUGIN(file,resource) _HIDE__ECOM_PLUGIN(ABI_DIR\BUILD_DIR,ECOM_BIN_DIR,DATAZ_,ECOM_RSC_DIR,file,file)
       
   163 #define HIDE_ECOM_PLUGIN_UDEB(file,resource) _HIDE__ECOM_PLUGIN(ABI_DIR\UDEB,ECOM_BIN_DIR,DATAZ_,ECOM_RSC_DIR,file,file)
       
   164 
       
   165 #ifdef SYMBIAN_ROM_STATIC_PLUGIN_INFORMATION
       
   166 	enable_spi
       
   167 #else
       
   168 	disable_spi
       
   169 #endif
       
   170 
       
   171 // Secure platform setting - use PlatSec.oby to turn diagnostics on
       
   172 PlatSecDiagnostics OFF
       
   173 PlatSecEnforcement ON
       
   174 PlatSecEnforceSysBin ON
       
   175 PlatSecProcessIsolation ON 
       
   176 
       
   177 #include <symbian_os_romdefs.hby>
       
   178 
       
   179 #include "feature.iby"
       
   180 
       
   181 #endif