author | Stefan Karlsson <stefan.karlsson@nokia.com> |
Mon, 15 Mar 2010 11:38:03 +0000 | |
branch | wip |
changeset 367 | 28419e56ee8a |
parent 234 | 5350032783e4 |
child 368 | 113d720d5a6c |
permissions | -rw-r--r-- |
3 | 1 |
# |
234 | 2 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 3 |
# All rights reserved. |
4 |
# This component and the accompanying materials are made available |
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
|
6 |
# which accompanies this distribution, and is available |
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
# |
|
9 |
# Initial Contributors: |
|
10 |
# Nokia Corporation - initial contribution. |
|
11 |
# |
|
12 |
# Contributors: |
|
13 |
# |
|
14 |
# Description: |
|
15 |
# e32abiv2defaults.flm |
|
16 |
# ARMv5 EXE/DLL ABIv2 Function Like Makefile (FLM) |
|
17 |
# |
|
18 |
||
19 |
# This is for variables that are not set in an FLM call but |
|
20 |
# only in e32abiv2 flms. |
|
21 |
||
22 |
AUTOEXPORTS:= |
|
23 |
CANHAVEEXPORTS:= |
|
24 |
CANIGNORENONCALLABLE:= |
|
25 |
DOPOSTLINK:= |
|
26 |
IMPORTLIBRARYREQUIRED:= |
|
27 |
LINKER_ENTRYPOINT_LIBDEP:= |
|
28 |
LINKER_ENTRYPOINT_SETTING:= |
|
29 |
LINKER_STUB_LIBRARY:= |
|
30 |
NAMEDSYMLKUP:= |
|
31 |
POSTLINKDEFFILE:= |
|
32 |
POSTLINKFILETYPE:= |
|
33 |
POSTLINKTARGETTYPE:= |
|
34 |
SUPPORT_FREEZE:= |
|
35 |
NOHIDEALL:= |
|
36 |
DEFAULT_NEWLIB:=$(DEFAULT_SYMBIAN_NEWLIB) |
|
37 |
||
367
28419e56ee8a
Add support for MMP keyword EPOCNESTEDEXCEPTIONS
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
234
diff
changeset
|
38 |
ifeq ($(EPOCNESTEDEXCEPTIONS),) |
28419e56ee8a
Add support for MMP keyword EPOCNESTEDEXCEPTIONS
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
234
diff
changeset
|
39 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
28419e56ee8a
Add support for MMP keyword EPOCNESTEDEXCEPTIONS
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
234
diff
changeset
|
40 |
else |
28419e56ee8a
Add support for MMP keyword EPOCNESTEDEXCEPTIONS
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
234
diff
changeset
|
41 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB_NESTED_EXCEPTIONS) |
28419e56ee8a
Add support for MMP keyword EPOCNESTEDEXCEPTIONS
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
234
diff
changeset
|
42 |
endif |
3 | 43 |
|
44 |
# Reset these variables as they change for every single target type |
|
45 |
# LINKER_ENTRYPOINT_ADORNMENT will be blank for GCCE; for RVCT it will look like "(uc_exe_.o)" |
|
46 |
# LINKER_ENTRYPOINT_DECORATION will be blank for RVCT; for GCCE it will look like "-u _E32Startup" |
|
22 | 47 |
# LINKER_SEPARATOR is a comma for GCCE as g++ is used for linking; for RVCT is should be a space, but |
48 |
# as make strips trailing spaces, we use the CHAR_SPACE variable. |
|
3 | 49 |
|
50 |
LINKER_ENTRYPOINT_ADORNMENT:= |
|
51 |
LINKER_ENTRYPOINT_DECORATION:= |
|
22 | 52 |
LINKER_SEPARATOR:= |
3 | 53 |
|
54 |
# For GCCE |
|
55 |
ifeq ($(TOOLCHAIN),GCCE) |
|
22 | 56 |
LINKER_ENTRYPOINT_DECORATION:=$(if $(call isoneof,$(TARGETTYPE),exexp exe),-Wl$(CHAR_COMMA)-u$(CHAR_COMMA)_E32Startup,-Wl$(CHAR_COMMA)-u$(CHAR_COMMA)_E32Dll) |
57 |
LINKER_SEPARATOR:=$(CHAR_COMMA) |
|
3 | 58 |
endif |
59 |
||
60 |
# For RVCT |
|
61 |
ifeq ($(TOOLCHAIN),RVCT) |
|
62 |
ifeq ($(call isoneof,$(TARGETTYPE),exe stdexe),1) # isoneof returns 1 if true, empty string if false |
|
63 |
LINKER_ENTRYPOINT_ADORNMENT:=(uc_exe_.o) |
|
64 |
endif |
|
65 |
||
234 | 66 |
ifeq ($(call isoneof,$(TARGETTYPE),ani textnotifier2 stddll plugin plugin3 fsy pdl dll pdll),1) |
3 | 67 |
LINKER_ENTRYPOINT_ADORNMENT:=(uc_dll_.o) |
68 |
endif |
|
69 |
||
70 |
ifeq ($(call isoneof,$(TARGETTYPE),var var2),1) |
|
71 |
LINKER_ENTRYPOINT_ADORNMENT:=(v_entry_.o) |
|
72 |
endif |
|
73 |
||
74 |
ifeq ($(call isoneof,$(TARGETTYPE),ldd pdd),1) |
|
75 |
LINKER_ENTRYPOINT_ADORNMENT:=(D_ENTRY_.o) |
|
76 |
endif |
|
77 |
||
78 |
ifeq ($(TARGETTYPE),kext) |
|
79 |
LINKER_ENTRYPOINT_ADORNMENT:=(X_ENTRY_.o) |
|
80 |
endif |
|
81 |
||
82 |
ifeq ($(TARGETTYPE),kdll) |
|
83 |
LINKER_ENTRYPOINT_ADORNMENT:=(L_ENTRY_.o) |
|
84 |
endif |
|
22 | 85 |
LINKER_SEPARATOR:=$(CHAR_SPACE) |
3 | 86 |
endif |
87 |
||
88 |
# "OPTION" metadata from the front-end can potentially be supplied simultaneously for both GCCE and RVCT, |
|
89 |
# so we need to make a decision on what we make use of based on the TOOLCHAIN in use. |
|
90 |
# Currently we only support changes to RVCT tool calls. |
|
91 |
||
92 |
LINKEROPTION:= |
|
93 |
OPTION_COMPILER:= |
|
94 |
OPTION_REPLACE_COMPILER:= |
|
95 |
||
96 |
ifeq ($(TOOLCHAIN),RVCT) |
|
97 |
LINKEROPTION:=$(LINKEROPTION_ARMCC) |
|
98 |
OPTION_COMPILER:=$(OPTION_ARMCC) |
|
99 |
OPTION_REPLACE_COMPILER:=$(OPTION_REPLACE_ARMCC) |
|
100 |
endif |
|
9 | 101 |
|
102 |
# "ARMFPU" overrides for 'fpu-ness' in compiler and postlinker calls in .mmp files are currently only |
|
103 |
# supported for RVCT-based builds, GCCE builds always make use of the interface defined defaults. |
|
104 |
ifeq ($(TOOLCHAIN),GCCE) |
|
105 |
ARMFPU:= |
|
106 |
endif |