sbsv2/raptor/lib/flm/e32abiv2ldd.flm
changeset 0 044383f39525
child 3 e1eecf4d390d
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 # Copyright (c) 2007-2009 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 # 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
       
    32 LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION) _E32Dll $(LINKER_ENTRYPOINT_DECORATION) $(call dblquote,$(STATIC_RUNTIME_DIR)/edev.lib$(LINKER_ENTRYPOINT_ADORNMENT))
       
    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 
       
    49 BASELIBS:=edev
       
    50 UID2:=100000af
       
    51 
       
    52 # No exception support for kernel code?
       
    53 EXCEPTIONS:=$(NO_EXCEPTIONS)
       
    54 
       
    55 # Only process a def file if it's specified
       
    56 # in the MMP - not if it's merely the frontend's guess
       
    57 # at what the def file name might be
       
    58 IMPORTLIBRARYREQUIRED:=
       
    59 
       
    60 ifeq ($(NOEXPORTLIBRARY),)
       
    61 ifneq ($(DEFFILE),)
       
    62 IMPORTLIBRARYREQUIRED:=1
       
    63 endif
       
    64 endif
       
    65 POSTLINKDEFFILE:=$(DEFFILE)
       
    66 SUPPORT_FREEZE:=1
       
    67 
       
    68 # We are appending to CDEFS but we don't want this to affect
       
    69 # other invocations so we are going to save it on a stack
       
    70 # and restore it afterwards
       
    71 $(call vsave,CDEFS SYSTEMINCLUDE)
       
    72 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
       
    73 CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__
       
    74 include $(FLMHOME)/e32abiv2.flm
       
    75 $(call vrestore)
       
    76 
       
    77 else
       
    78 $(error $e32abiv2ldd.flm called with wrong TARGETTYPE (should be 'ldd' but is '$(TARGETTYPE)'))
       
    79 endif
       
    80