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