0
|
1 |
// Copyright (c) 1997-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 "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32/kernel/ekern.mmp
|
|
15 |
// ekern.exe Kernel
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
*/
|
|
22 |
|
|
23 |
OS_LAYER_SYSTEMINCLUDE_SYMBIAN
|
|
24 |
USERINCLUDE ../include/kernel
|
|
25 |
|
|
26 |
#include <variant.mmh>
|
|
27 |
macro __IN_KERNEL__
|
|
28 |
|
|
29 |
target VariantTarget(ekern,exe)
|
|
30 |
|
|
31 |
targettype exexp
|
|
32 |
|
|
33 |
#include "kern_int.mmh"
|
|
34 |
|
|
35 |
firstlib VariantTarget(kc_exe,lib)
|
|
36 |
|
|
37 |
// For emulator, specify newlib containing kernel-side definitions of new and delete operators
|
|
38 |
// to override default library, containing user-side definitions, linked by toolchain for EXE and DLL targets
|
|
39 |
#ifdef WINS
|
|
40 |
newlib scppnwdl_kern.lib
|
|
41 |
#endif
|
|
42 |
|
|
43 |
#if defined(DEMAND_PAGING)
|
|
44 |
// we have to keep this here, and not in kern_int.mmh, because media drivers
|
|
45 |
// use the same macro name for different puposes...
|
|
46 |
macro __DEMAND_PAGING__
|
|
47 |
#endif
|
|
48 |
|
|
49 |
|
|
50 |
#ifdef SMP
|
|
51 |
#include "../nkernsmp/nkern.mmp"
|
|
52 |
#else
|
|
53 |
#include "../nkern/nkern.mmp"
|
|
54 |
#endif
|
|
55 |
|
|
56 |
#if defined(MARM)
|
|
57 |
|
|
58 |
#if defined(EABI)
|
|
59 |
// Symbian implementation of operator vector new / delete
|
|
60 |
sourcepath .
|
|
61 |
source array_eabi.cpp
|
|
62 |
#endif
|
|
63 |
|
|
64 |
#ifndef SMP
|
|
65 |
sourcepath ../nkern
|
|
66 |
source nk_old.cpp
|
|
67 |
#endif
|
|
68 |
sourcepath arm
|
|
69 |
source cglobals.cpp cexec.cpp cexec.cia cinit.cpp
|
|
70 |
source ckernel.cpp ckernel.cia cipc.cpp cipc.cia csched.cia
|
|
71 |
source cutils.cpp cutils.cia
|
|
72 |
source cache.cpp cache_maintenance.cia cache_maintenance.cpp
|
|
73 |
source cache_maintenancev7.cia cache_external.cpp
|
|
74 |
|
|
75 |
#ifdef DEMAND_PAGING
|
|
76 |
source byte_pair.cia
|
|
77 |
#endif
|
|
78 |
|
|
79 |
sourcepath ../klib/arm
|
|
80 |
source ckdes8.cia cumem.cia cbma.cia
|
|
81 |
sourcepath ../common/arm
|
|
82 |
source carray.cia cdes8.cia cheap.cia cmem.cia
|
|
83 |
#if defined(GCC32)
|
|
84 |
source cgcchelp.cpp cgcchelp.cia
|
|
85 |
#elif defined(ARMCC)
|
|
86 |
source armcchlp.cpp
|
|
87 |
#ifndef SBSV2
|
|
88 |
source armcchlp.cia
|
|
89 |
#endif
|
|
90 |
#endif
|
|
91 |
|
|
92 |
#if defined(REPLACE_GENERIC_UTILS)
|
|
93 |
macro __REPLACE_GENERIC_UTILS
|
|
94 |
USERINCLUDE VariantReplacementUtilsPath
|
|
95 |
sourcepath VariantReplacementUtilsPath
|
|
96 |
source kernel.cia common.cia
|
|
97 |
#endif
|
|
98 |
|
|
99 |
#elif defined(X86)
|
|
100 |
sourcepath .
|
|
101 |
source byte_pair.cpp
|
|
102 |
sourcepath x86
|
|
103 |
source cglobals.cpp cexec.cpp cinit.cpp
|
|
104 |
source ckernel.cpp cipc.cpp csched.cpp
|
|
105 |
source cutils.cpp abort.cpp cache.cpp
|
|
106 |
source cexec.cia
|
|
107 |
source ckernel.cia
|
|
108 |
source csched.cia
|
|
109 |
source cutils.cia
|
|
110 |
sourcepath ../klib/x86
|
|
111 |
source cumem.cpp
|
|
112 |
source cumem.cia
|
|
113 |
sourcepath ../common/x86
|
|
114 |
userinclude ../common
|
|
115 |
source cmem.cia
|
|
116 |
|
|
117 |
|
|
118 |
#elif defined(WINS)
|
|
119 |
|
|
120 |
sourcepath ../nkern
|
|
121 |
source nk_old.cpp
|
|
122 |
sourcepath ../common/win32
|
|
123 |
source seh.cpp
|
|
124 |
|
|
125 |
sourcepath win32
|
|
126 |
source cboot.cpp
|
|
127 |
source cglobals.cpp cexec.cpp cinit.cpp
|
|
128 |
source ckernel.cpp csched.cpp
|
|
129 |
source cutils.cpp cache.cpp
|
|
130 |
|
|
131 |
library emulator.lib
|
|
132 |
#endif
|
|
133 |
|
|
134 |
#include "../memmodel/memmodel.mmp"
|
|
135 |
|
|
136 |
sourcepath .
|
|
137 |
source sglobals.cpp device.cpp eventq.cpp
|
|
138 |
source sexec.cpp sinit.cpp skernel.cpp
|
|
139 |
source scodeseg.cpp sipc.cpp notifier.cpp
|
|
140 |
source object.cpp power.cpp server.cpp
|
|
141 |
source stimer.cpp sutils.cpp random.cpp
|
|
142 |
source sprocess.cpp sthread.cpp
|
|
143 |
source smqueue.cpp
|
|
144 |
source sproperty.cpp
|
|
145 |
source ssharedio.cpp
|
|
146 |
source ssecure.cpp
|
|
147 |
source emi.cpp
|
|
148 |
source objectix.cpp
|
|
149 |
source sbtrace.cpp
|
|
150 |
source stest.cpp
|
|
151 |
source sshbuf.cpp smap.cpp
|
|
152 |
|
|
153 |
sourcepath ../klib
|
|
154 |
source dbase.cpp kdes8.cpp
|
|
155 |
source kheap.cpp bma.cpp
|
|
156 |
|
|
157 |
sourcepath ../common
|
|
158 |
source alloc.cpp array.cpp des8.cpp heap.cpp mem.cpp
|
|
159 |
source secure.cpp
|
|
160 |
macro __EXPORT_MEMCPY__
|
|
161 |
#ifdef MARM
|
|
162 |
source gcchelp.cpp
|
|
163 |
#endif
|
|
164 |
|
|
165 |
#ifdef SMP
|
|
166 |
deffile ekernsmp.def
|
|
167 |
nostrictdef
|
|
168 |
#else
|
|
169 |
deffile ekern.def
|
|
170 |
#endif
|
|
171 |
|
|
172 |
start wins
|
|
173 |
|
|
174 |
win32_library kernel32.lib
|
|
175 |
#if defined(VC32)
|
|
176 |
win32_library msvcrt.lib
|
|
177 |
#endif
|
|
178 |
end
|
|
179 |
|
|
180 |
epocstacksize 0x1000
|
|
181 |
|
|
182 |
// uids
|
|
183 |
#ifdef SMP
|
|
184 |
uid 0x1000008b 0x10287037
|
|
185 |
#else
|
|
186 |
uid 0x1000008b 0x100041af
|
|
187 |
#endif
|
|
188 |
vendorid 0x70000001
|
|
189 |
|
|
190 |
noexportlibrary
|
|
191 |
linkas ekern.exe
|
|
192 |
|
|
193 |
capability all
|
|
194 |
|
|
195 |
SMPSAFE
|