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