author | Dean Draper <dean.draper@nokia.com> |
Fri, 12 Mar 2010 12:17:30 +0000 | |
branch | fix |
changeset 352 | 2489b07138d3 |
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 ldd ABIv2 Function Like Makefile (FLM) |
|
15 |
# Build an e32 ldd (Logical Device Driver) |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
ifeq ($(TARGETTYPE),ldd) |
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
||
22 |
||
23 |
# What we need to build a Logical Device Driver |
|
24 |
CANHAVEEXPORTS:=1 |
|
25 |
POSTLINKTARGETTYPE:=LDD |
|
26 |
POSTLINKFILETYPE:=ldd |
|
27 |
DOPOSTLINK:=1 |
|
28 |
AUTOEXPORTS:=_Z19CreateLogicalDevicev,1; |
|
29 |
||
30 |
# Determine what kind of entrypoint option to set |
|
31 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edev.lib |
|
22 | 32 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edev.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 33 |
|
34 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
35 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
36 |
endif |
|
37 |
||
38 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
39 |
STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB) |
|
40 |
RUNTIME_LIBS_LIST:= |
|
41 |
CANIGNORENONCALLABLE:=1 |
|
42 |
||
43 |
# Kernel code builds as arm |
|
44 |
ALWAYS_BUILD_AS_ARM:=1 |
|
45 |
||
46 |
# No dedicated library for operator new/delete functions. |
|
47 |
HAS_DEDICATED_OP_NEWDEL_LIB:= |
|
48 |
||
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
|
49 |
# 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
|
50 |
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
|
51 |
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
|
52 |
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
|
53 |
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
|
54 |
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
|
55 |
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
|
56 |
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
|
57 |
|
3 | 58 |
BASELIBS:=edev |
59 |
UID2:=100000af |
|
60 |
||
61 |
# No exception support for kernel code? |
|
62 |
EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
63 |
||
64 |
# Only process a def file if it's specified |
|
65 |
# in the MMP - not if it's merely the frontend's guess |
|
66 |
# at what the def file name might be |
|
67 |
IMPORTLIBRARYREQUIRED:= |
|
68 |
||
69 |
ifeq ($(NOEXPORTLIBRARY),) |
|
70 |
ifneq ($(DEFFILE),) |
|
71 |
IMPORTLIBRARYREQUIRED:=1 |
|
72 |
endif |
|
73 |
endif |
|
74 |
POSTLINKDEFFILE:=$(DEFFILE) |
|
75 |
SUPPORT_FREEZE:=1 |
|
76 |
||
77 |
# We are appending to CDEFS but we don't want this to affect |
|
78 |
# other invocations so we are going to save it on a stack |
|
79 |
# and restore it afterwards |
|
80 |
$(call vsave,CDEFS SYSTEMINCLUDE) |
|
81 |
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 |
|
82 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__ |
|
83 |
include $(FLMHOME)/e32abiv2.flm |
|
84 |
$(call vrestore) |
|
85 |
||
86 |
else |
|
87 |
$(error $e32abiv2ldd.flm called with wrong TARGETTYPE (should be 'ldd' but is '$(TARGETTYPE)')) |
|
88 |
endif |
|
89 |