author | Richard Taylor <richard.i.taylor@nokia.com> |
Mon, 29 Mar 2010 14:56:03 +0100 | |
branch | fix |
changeset 417 | ea9157619e03 |
parent 230 | 3d05ccc51d1a |
permissions | -rw-r--r-- |
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
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 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 |
|
22 | 31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edev.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 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 |
||
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
48 |
# Fixed export TARGETTYPEs should only reference a .def file if an explicit DEFFILE statement is present in the .mmp file |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
49 |
ifneq ($(DEFFILEKEYWORD),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
50 |
POSTLINKDEFFILE:=$(DEFFILE) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
51 |
SUPPORT_FREEZE:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
52 |
ifeq ($(NOEXPORTLIBRARY),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
53 |
IMPORTLIBRARYREQUIRED:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
54 |
endif |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
55 |
endif |
3 | 56 |
|
57 |
BASELIBS:=edev |
|
58 |
UID2:=100039d0 |
|
59 |
||
60 |
IMPORTLIBRARYREQUIRED:= |
|
61 |
# This is basically a DLL with some tweaks |
|
62 |
ifneq ($(DEFFILE),) |
|
63 |
IMPORTLIBRARYREQUIRED:=1 |
|
64 |
endif |
|
65 |
POSTLINKDEFFILE:=$(DEFFILE) |
|
66 |
SUPPORT_FREEZE:=1 |
|
67 |
||
68 |
# No exception support for kernel code? |
|
69 |
EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
70 |
||
71 |
||
72 |
||
73 |
# We are appending to CDEFS but we don't want this to affect |
|
74 |
# other invocations so we are going to save it on a stack |
|
75 |
# and restore it afterwards |
|
76 |
$(call vsave,CDEFS SYSTEMINCLUDE) |
|
77 |
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 |
|
78 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__ |
|
79 |
include $(FLMHOME)/e32abiv2.flm |
|
80 |
$(call vrestore) |
|
81 |
||
82 |
else |
|
83 |
$(error $e32abiv2pdd.flm called with wrong TARGETTYPE (should be 'pdd' but is '$(TARGETTYPE)')) |
|
84 |
endif |
|
85 |