3
|
1 |
# Copyright (c) 2007-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 |
# 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)
|
|
51 |
|
|
52 |
# No exception support for kernel code?
|
|
53 |
EXCEPTIONS:=$(NO_EXCEPTIONS)
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
# We are appending to CDEFS but we don't want this to affect
|
|
58 |
# other invocations so we are going to save it on a stack
|
|
59 |
# and restore it afterwards
|
|
60 |
$(call vsave,CDEFS SYSTEMINCLUDE)
|
|
61 |
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
|
|
62 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__
|
|
63 |
include $(FLMHOME)/e32abiv2.flm
|
|
64 |
$(call vrestore)
|
|
65 |
|
|
66 |
else
|
|
67 |
$(error $e32abiv2kdll.flm called with wrong TARGETTYPE (should be 'kdll' but is '$(TARGETTYPE)'))
|
|
68 |
endif
|
|
69 |
|