625
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
1 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
2 |
# All rights reserved.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
3 |
# This component and the accompanying materials are made available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
5 |
# which accompanies this distribution, and is available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
7 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
8 |
# Initial Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
9 |
# Nokia Corporation - initial contribution.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
10 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
11 |
# Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
12 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
13 |
# Description:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
14 |
# Post-linking macros for supported e32 base architectures
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
15 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
16 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
17 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
18 |
define e32postlink_arm
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
19 |
$(POSTLINKER) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
20 |
--sid=0x$(if $(SID),$(SID),$(if $(UID3),$(UID3),0)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
21 |
--version=$(VERSION) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
22 |
--capability=$(FINAL_CAPABILITIES) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
23 |
--linkas=$(call dblquote,$(LINKASVERSIONED)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
24 |
--fpu=$(POSTLINKER_FPU) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
25 |
--targettype=$(POSTLINKTARGETTYPE) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
26 |
--output=$$(call dblquote,$$@) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
27 |
--elfinput=$(call dblquote,$(LINK_TARGET)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
28 |
$(if $(UID1),--uid1=0x$(UID1),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
29 |
$(if $(UID2),--uid2=0x$(UID2),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
30 |
$(if $(UID3),--uid3=0x$(UID3),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
31 |
$(if $(VENDORID),--vid=0x$(VENDORID),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
32 |
$(if $(EXPTARGET),--customdlltarget,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
33 |
$(if $(ARMLIBS),--excludeunwantedexports,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
34 |
$(if $(EPOCALLOWDLLDATA),--dlldata,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
35 |
$(if $(EPOCPROCESSPRIORITY),--priority=$(EPOCPROCESSPRIORITY),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
36 |
$(if $(EPOCSTACKSIZE),--stack=0x$(EPOCSTACKSIZE),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
37 |
$(if $(EPOCHEAPSIZEMIN),--heap=0x$(EPOCHEAPSIZEMIN)$(CHAR_COMMA)0x$(EPOCHEAPSIZEMAX),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
38 |
$(if $(EPOCFIXEDPROCESS),--fixedaddress,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
39 |
$(if $(EPOCDATALINKADDRESS),--datalinkaddress=$(EPOCDATALINKADDRESS),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
40 |
$(if $(NAMEDSYMLKUP),--namedlookup,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
41 |
$(if $(SMPSAFE),--smpsafe,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
42 |
$(if $(POSTLINKDEFFILE),--definput=$(POSTLINKDEFFILE),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
43 |
$(if $(EXPORTUNFROZEN),--unfrozen,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
44 |
$(if $(AUTOEXPORTS),--sysdef=$(call dblquote,$(AUTOEXPORTS)),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
45 |
$(if $(CANIGNORENONCALLABLE), \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
46 |
$(if $(IMPORTLIBRARYREQUIRED),,--ignorenoncallable),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
47 |
$(if $(CANHAVEEXPORTS), --defoutput=$(call dblquote,$(GENERATED_DEFFILE)) --dso=$(GENERATED_DSO)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
48 |
$(if $(filter $(VARIANTTYPE),$(DEBUGGABLE)),--debuggable,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
49 |
$(if $(POSTLINKER_SUPPORTS_WDP), \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
50 |
--codepaging=$(PAGEDCODE_OPTION) --datapaging=$(PAGEDDATA_OPTION), \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
51 |
$(POSTLINKER_PAGEDOPTION)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
52 |
$(if $(NOCOMPRESSTARGET),--uncompressed, \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
53 |
$(if $(INFLATECOMPRESSTARGET),--compressionmethod=inflate, \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
54 |
$(if $(BYTEPAIRCOMPRESSTARGET),--compressionmethod=bytepair, \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
55 |
--compressionmethod=$(POSTLINKER_COMPRESSION_DEFAULT)))) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
56 |
--libpath="$(call concat,$(PATHSEP)$(CHAR_SEMIC),$(strip $(RUNTIME_LIBS_PATH) $(STATIC_LIBS_PATH)))"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
57 |
endef
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
58 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
59 |
define e32postlink_x86
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
60 |
$(POSTLINKER) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
61 |
-sid 0x$(if $(SID),$(SID),$(if $(UID3),$(UID3),0)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
62 |
-version $(VERSION) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
63 |
-capability $(FINAL_CAPABILITIES) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
64 |
$(if $(UID1),-uid1 0x$(UID1),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
65 |
$(if $(UID2),-uid2 0x$(UID2),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
66 |
$(if $(UID3),-uid3 0x$(UID3),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
67 |
$(if $(VENDORID),-vid 0x$(VENDORID),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
68 |
$(if $(EPOCALLOWDLLDATA),-allow,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
69 |
$(if $(EPOCPROCESSPRIORITY),-priority $(EPOCPROCESSPRIORITY),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
70 |
$(if $(EPOCSTACKSIZE),-stack 0x$(EPOCSTACKSIZE),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
71 |
$(if $(EPOCHEAPSIZEMIN),-heap 0x$(EPOCHEAPSIZEMIN) 0x$(EPOCHEAPSIZEMAX),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
72 |
$(if $(EPOCFIXEDPROCESS),-fixed,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
73 |
$(if $(EPOCDATALINKADDRESS),-datalinkaddress $(EPOCDATALINKADDRESS),) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
74 |
$(if $(SMPSAFE),-smpsafe,) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
75 |
$(if $(POSTLINKER_SUPPORTS_WDP), \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
76 |
-codepaging $(PAGEDCODE_OPTION) -datapaging $(PAGEDDATA_OPTION), \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
77 |
$(POSTLINKER_PAGEDOPTION)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
78 |
$(if $(NOCOMPRESSTARGET),-uncompressed, \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
79 |
$(if $(BYTEPAIRCOMPRESSTARGET),-compressionmethod bytepair, \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
80 |
-compressionmethod $(POSTLINKER_COMPRESSION_DEFAULT))) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
81 |
$(call dblquote,$(LINK_TARGET)) \
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
82 |
$$(call dblquote,$$@)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
83 |
endef
|