sbsv2/raptor/lib/flm/e32postlink.mk
changeset 625 a1925fb7753a
child 629 541af5ee3ed9
equal deleted inserted replaced
624:f70b728ea30c 625:a1925fb7753a
       
     1 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     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 # Post-linking macros for supported e32 base architectures
       
    15 #
       
    16 #
       
    17 
       
    18 define e32postlink_arm
       
    19 	$(POSTLINKER) \
       
    20 	  --sid=0x$(if $(SID),$(SID),$(if $(UID3),$(UID3),0)) \
       
    21 	  --version=$(VERSION) \
       
    22 	  --capability=$(FINAL_CAPABILITIES) \
       
    23 	  --linkas=$(call dblquote,$(LINKASVERSIONED)) \
       
    24 	  --fpu=$(POSTLINKER_FPU) \
       
    25 	  --targettype=$(POSTLINKTARGETTYPE) \
       
    26 	  --output=$$(call dblquote,$$@) \
       
    27 	  --elfinput=$(call dblquote,$(LINK_TARGET)) \
       
    28 	  $(if $(UID1),--uid1=0x$(UID1),) \
       
    29 	  $(if $(UID2),--uid2=0x$(UID2),) \
       
    30 	  $(if $(UID3),--uid3=0x$(UID3),) \
       
    31 	  $(if $(VENDORID),--vid=0x$(VENDORID),) \
       
    32 	  $(if $(EXPTARGET),--customdlltarget,) \
       
    33 	  $(if $(ARMLIBS),--excludeunwantedexports,) \
       
    34 	  $(if $(EPOCALLOWDLLDATA),--dlldata,) \
       
    35 	  $(if $(EPOCPROCESSPRIORITY),--priority=$(EPOCPROCESSPRIORITY),) \
       
    36 	  $(if $(EPOCSTACKSIZE),--stack=0x$(EPOCSTACKSIZE),) \
       
    37 	  $(if $(EPOCHEAPSIZEMIN),--heap=0x$(EPOCHEAPSIZEMIN)$(CHAR_COMMA)0x$(EPOCHEAPSIZEMAX),) \
       
    38 	  $(if $(EPOCFIXEDPROCESS),--fixedaddress,) \
       
    39 	  $(if $(EPOCDATALINKADDRESS),--datalinkaddress=$(EPOCDATALINKADDRESS),) \
       
    40 	  $(if $(NAMEDSYMLKUP),--namedlookup,) \
       
    41 	  $(if $(SMPSAFE),--smpsafe,) \
       
    42 	  $(if $(POSTLINKDEFFILE),--definput=$(POSTLINKDEFFILE),) \
       
    43 	  $(if $(EXPORTUNFROZEN),--unfrozen,) \
       
    44 	  $(if $(AUTOEXPORTS),--sysdef=$(call dblquote,$(AUTOEXPORTS)),) \
       
    45 	  $(if $(CANIGNORENONCALLABLE), \
       
    46 	    $(if $(IMPORTLIBRARYREQUIRED),,--ignorenoncallable),) \
       
    47 	  $(if $(CANHAVEEXPORTS), --defoutput=$(call dblquote,$(GENERATED_DEFFILE)) --dso=$(GENERATED_DSO)) \
       
    48 	  $(if $(filter $(VARIANTTYPE),$(DEBUGGABLE)),--debuggable,) \
       
    49 	  $(if $(POSTLINKER_SUPPORTS_WDP), \
       
    50 	    --codepaging=$(PAGEDCODE_OPTION) --datapaging=$(PAGEDDATA_OPTION), \
       
    51 	    $(POSTLINKER_PAGEDOPTION)) \
       
    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)))"
       
    57 endef
       
    58 
       
    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