author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Mon, 17 May 2010 11:07:30 +0100 | |
changeset 554 | e7dd8533063f |
parent 510 | e006d1d3ddc3 |
permissions | -rw-r--r-- |
510
e006d1d3ddc3
Release note: sf bug 2495: KDLL TARGETTYPEs do not support .def file freezing
Dean Draper <dean.draper@nokia.com>
parents:
22
diff
changeset
|
1 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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 |
# ARMv5 KDLL ABIv2 Function Like Makefile (FLM) |
|
15 |
# Build an e32 KDLL (Kernel DLL) |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
ifeq ($(TARGETTYPE),kdll) |
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
||
22 |
# What we need to build a Kernel DLL |
|
23 |
CANHAVEEXPORTS:=1 |
|
24 |
POSTLINKTARGETTYPE:=DLL |
|
25 |
POSTLINKFILETYPE:=dll |
|
26 |
DOPOSTLINK:=1 |
|
27 |
||
28 |
# Determine what kind of entrypoint option to set |
|
29 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/ekll.lib |
|
22 | 30 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/ekll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 31 |
|
32 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
33 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
34 |
endif |
|
35 |
||
36 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
37 |
STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB) |
|
38 |
RUNTIME_LIBS_LIST:= |
|
39 |
||
40 |
# Kernel code builds as arm |
|
41 |
ALWAYS_BUILD_AS_ARM:=1 |
|
42 |
||
43 |
# No dedicated library for operator new/delete functions. |
|
44 |
HAS_DEDICATED_OP_NEWDEL_LIB:= |
|
45 |
||
46 |
BASELIBS:=ekll.lib |
|
47 |
ifeq ($(NOEXPORTLIBRARY),) |
|
48 |
IMPORTLIBRARYREQUIRED:=1 |
|
49 |
endif |
|
50 |
POSTLINKDEFFILE:=$(DEFFILE) |
|
510
e006d1d3ddc3
Release note: sf bug 2495: KDLL TARGETTYPEs do not support .def file freezing
Dean Draper <dean.draper@nokia.com>
parents:
22
diff
changeset
|
51 |
SUPPORT_FREEZE:=1 |
3 | 52 |
|
53 |
# No exception support for kernel code? |
|
54 |
EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
55 |
||
56 |
||
57 |
||
58 |
# We are appending to CDEFS but we don't want this to affect |
|
59 |
# other invocations so we are going to save it on a stack |
|
60 |
# and restore it afterwards |
|
61 |
$(call vsave,CDEFS SYSTEMINCLUDE) |
|
62 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(EPOCROOT)/epoc32/include/nkern $(EPOCROOT)/epoc32/include/kernel/arm $(EPOCROOT)/epoc32/include/memmodel/epoc $(EPOCROOT)/epoc32/include/kernel $(EPOCROOT)/epoc32/include/nkern/arm |
|
63 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__ |
|
64 |
include $(FLMHOME)/e32abiv2.flm |
|
65 |
$(call vrestore) |
|
66 |
||
67 |
else |
|
68 |
$(error $e32abiv2kdll.flm called with wrong TARGETTYPE (should be 'kdll' but is '$(TARGETTYPE)')) |
|
69 |
endif |
|
70 |