CryptoPkg/OpensslLib: add softfloat dependency for ARM
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 30 Nov 2015 08:57:26 +0000 (08:57 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 30 Nov 2015 08:57:26 +0000 (08:57 +0000)
UEFI on 32-bit ARM does not allow the use of hardware floating point,
so in order to be able to run OpenSslLib, we need to fulfil its
floating point arithmetic dependencies using a software library.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19033 6f19259b-4bc3-4df7-8a09-765794883524

CryptoPkg/Library/OpensslLib/OpensslLib.inf

index 2e74f6cbeccf6a9997429d465e96ec4d332a7386..20200c33f6218785c93d3a5288a220baeaf7ab75 100644 (file)
 [LibraryClasses]\r
   DebugLib\r
 \r
+[LibraryClasses.ARM]\r
+  ArmSoftFloatLib\r
+\r
 [BuildOptions]\r
   #\r
   # Disables the following Visual Studio compiler warnings brought by openssl source, so we do not break the build with /WX option:\r
   #  513: a value of type <type> cannot be assigned to an entity of type <type>\r
   #  188: enumerated type mixed with another type (i.e. passing an integer as an enum without a cast)\r
   # 1296: Extended constant initialiser used\r
-  RVCT:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) --library_interface=aeabi_clib99 --fpu=vfpv3 --diag_suppress=1296,1295,550,1293,111,68,177,223,144,513,188\r
+  RVCT:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) --library_interface=aeabi_clib99 --diag_suppress=1296,1295,550,1293,111,68,177,223,144,513,188\r
   XCODE:*_*_IA32_CC_FLAGS   = -mmmx -msse -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w\r
   XCODE:*_*_X64_CC_FLAGS    = -mmmx -msse -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w\r