sbsv2/raptor/lib/flm/e32abiv2klib.flm
changeset 0 044383f39525
child 3 e1eecf4d390d
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 LIB ABIv2 Function Like Makefile (FLM)
       
    15 # Build an e32 static library for kernel code
       
    16 # 
       
    17 #
       
    18 
       
    19 ifeq ($(TARGETTYPE),klib)
       
    20 include $(FLMHOME)/e32abiv2defaults.mk
       
    21 
       
    22 # What we need to build a kernel LIB
       
    23 POSTLINKFILETYPE:=lib
       
    24 
       
    25 # Kernel code builds as arm
       
    26 ALWAYS_BUILD_AS_ARM:=1
       
    27 
       
    28 # No exception support for kernel code?
       
    29 EXCEPTIONS:=$(NO_EXCEPTIONS)
       
    30 
       
    31 # We are appending to CDEFS but we don't want this to affect
       
    32 # other invocations so we are going to save it on a stack
       
    33 # and restore it afterwards
       
    34 $(call vsave,CDEFS)
       
    35 CDEFS:=$(CDEFS) __KERNEL_MODE__
       
    36 include $(FLMHOME)/e32abiv2.flm
       
    37 $(call vrestore)
       
    38 
       
    39 else
       
    40 $(error $e32abiv2klib.flm called with wrong TARGETTYPE (should be 'klib' but is '$(TARGETTYPE)'))
       
    41 endif