|
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 pdd ABIv2 Function Like Makefile (FLM) |
|
15 # Build an e32 pdd (Physical Device Driver) |
|
16 # |
|
17 # |
|
18 |
|
19 ifeq ($(TARGETTYPE),pdd) |
|
20 include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
|
22 # What we need to build a Logical Device Driver |
|
23 CANHAVEEXPORTS:=1 |
|
24 POSTLINKTARGETTYPE:=PDD |
|
25 POSTLINKFILETYPE:=pdd |
|
26 DOPOSTLINK:=1 |
|
27 AUTOEXPORTS:=_Z20CreatePhysicalDevicev,1; |
|
28 |
|
29 # Determine what kind of entrypoint option to set |
|
30 LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edev.lib |
|
31 LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION) _E32Dll $(LINKER_ENTRYPOINT_DECORATION) $(call dblquote,$(STATIC_RUNTIME_DIR)/edev.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
|
32 |
|
33 ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
34 LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
35 endif |
|
36 |
|
37 LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
38 STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB) |
|
39 RUNTIME_LIBS_LIST:= |
|
40 CANIGNORENONCALLABLE:=1 |
|
41 |
|
42 # Kernel code builds as arm |
|
43 ALWAYS_BUILD_AS_ARM:=1 |
|
44 |
|
45 # No dedicated library for operator new/delete functions. |
|
46 HAS_DEDICATED_OP_NEWDEL_LIB:= |
|
47 |
|
48 |
|
49 BASELIBS:=edev |
|
50 UID2:=100039d0 |
|
51 |
|
52 IMPORTLIBRARYREQUIRED:= |
|
53 # This is basically a DLL with some tweaks |
|
54 ifneq ($(DEFFILE),) |
|
55 IMPORTLIBRARYREQUIRED:=1 |
|
56 endif |
|
57 POSTLINKDEFFILE:=$(DEFFILE) |
|
58 SUPPORT_FREEZE:=1 |
|
59 |
|
60 # No exception support for kernel code? |
|
61 EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
62 |
|
63 |
|
64 |
|
65 # We are appending to CDEFS but we don't want this to affect |
|
66 # other invocations so we are going to save it on a stack |
|
67 # and restore it afterwards |
|
68 $(call vsave,CDEFS SYSTEMINCLUDE) |
|
69 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 |
|
70 CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__ |
|
71 include $(FLMHOME)/e32abiv2.flm |
|
72 $(call vrestore) |
|
73 |
|
74 else |
|
75 $(error $e32abiv2pdd.flm called with wrong TARGETTYPE (should be 'pdd' but is '$(TARGETTYPE)')) |
|
76 endif |
|
77 |