sbsv2/raptor/lib/flm/e32abiv2kext.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 KEXT ABIv2 Function Like Makefile (FLM)
       
    15 # Build an e32 KEXT (Kernel Extension)
       
    16 # 
       
    17 #
       
    18 
       
    19 ifeq ($(TARGETTYPE),kext)
       
    20 include $(FLMHOME)/e32abiv2defaults.mk
       
    21 
       
    22 
       
    23 # What we need to build a Kernel Extension
       
    24 # an import library isn't strictly required, apparently. So only try to
       
    25 # generate one if the def file exists.
       
    26 ifeq ($(NOEXPORTLIBRARY),)
       
    27 ifneq ($(DEFFILE),)
       
    28 IMPORTLIBRARYREQUIRED:=1
       
    29 endif
       
    30 endif
       
    31 
       
    32 POSTLINKDEFFILE:=$(DEFFILE)
       
    33 SUPPORT_FREEZE:=1
       
    34 
       
    35 # Default Linker settings for this target type
       
    36 LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/eext.lib
       
    37 LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION) _E32Dll $(LINKER_ENTRYPOINT_DECORATION) $(call dblquote,$(STATIC_RUNTIME_DIR)/eext.lib$(LINKER_ENTRYPOINT_ADORNMENT))
       
    38 
       
    39 ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True")
       
    40 LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP)
       
    41 endif
       
    42 
       
    43 LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib
       
    44 STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB)
       
    45 RUNTIME_LIBS_LIST:=
       
    46 CANIGNORENONCALLABLE:=1
       
    47 
       
    48 # Kernel code builds as arm
       
    49 ALWAYS_BUILD_AS_ARM:=1
       
    50 CANHAVEEXPORTS:=1
       
    51 POSTLINKTARGETTYPE:=KEXT
       
    52 POSTLINKFILETYPE:=dll
       
    53 DOPOSTLINK:=1
       
    54 
       
    55 # No dedicated library for operator new/delete functions.
       
    56 HAS_DEDICATED_OP_NEWDEL_LIB:=
       
    57 
       
    58 # No exception support for kernel code?
       
    59 EXCEPTIONS:=$(NO_EXCEPTIONS)
       
    60 
       
    61 
       
    62 BASELIBS:=eext.lib
       
    63 
       
    64 
       
    65 # Use the general EABI FLM 
       
    66 # We are appending to CDEFS and SYSTEMINCLUDE but we don't want this to affect
       
    67 # other invocations so we are going to save it on a stack
       
    68 # and restore it afterwards
       
    69 $(call vsave,CDEFS SYSTEMINCLUDE)
       
    70 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
       
    71 CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__
       
    72 include $(FLMHOME)/e32abiv2.flm
       
    73 $(call vrestore)
       
    74 
       
    75 else
       
    76 $(error $e32abiv2kext.flm called with wrong TARGETTYPE (should be 'kext' but is '$(TARGETTYPE)'))
       
    77 endif
       
    78