e32abiv2klib.flm 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ifeq ($(TARGETTYPE),klib)
  19. include $(FLMHOME)/e32abiv2defaults.mk
  20. # What we need to build a kernel LIB
  21. POSTLINKFILETYPE:=lib
  22. # Kernel code builds as arm
  23. ALWAYS_BUILD_AS_ARM:=1
  24. # No exception support for kernel code?
  25. EXCEPTIONS:=$(NO_EXCEPTIONS)
  26. # We are appending to CDEFS but we don't want this to affect
  27. # other invocations so we are going to save it on a stack
  28. # and restore it afterwards
  29. $(call vsave,CDEFS)
  30. CDEFS:=$(CDEFS) __KERNEL_MODE__
  31. include $(FLMHOME)/e32abiv2.flm
  32. $(call vrestore)
  33. else
  34. $(error $e32abiv2klib.flm called with wrong TARGETTYPE (should be 'klib' but is '$(TARGETTYPE)'))
  35. endif