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