summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-11-30 08:57:03 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-11-30 08:57:03 +0000
commitc75f83719457fa0fc786b14c4ab8470da63cfeb3 (patch)
treea7dde8015b264f79d2ca98cf9d18a1a6e083dc6e /ArmPkg
parent1dbda2b4cfd60e5955cde98aec6537816af8be5e (diff)
downloadedk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.tar.gz
edk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.tar.bz2
edk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.zip
ArmPkg/ArmSoftFloatLib: add support for RVCT
The ARM softfloat library in ArmSoftfloatLib currently does not build under RVCT, simply because the code includes system header files that RVCT does not provide. However, nothing exported by those include files is actually used by the library when built in SOFTFLOAT_FOR_GCC mode, so we can just drop all of them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19031 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpeq.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpge.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpgt.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmple.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmplt.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpeq.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpge.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpgt.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmple.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmplt.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpun.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat.c1
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize4
15 files changed, 1 insertions, 17 deletions
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpeq.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpeq.c
index 8bde7a5489..614c7c61c8 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpeq.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpeq.c
@@ -18,7 +18,6 @@
* Written by Ben Harris, 2000. This file is in the Public Domain.
*/
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmpeq.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpge.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpge.c
index c153feb6a8..5062a286b7 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpge.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpge.c
@@ -20,7 +20,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpgt.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpgt.c
index 5fb1606697..b98652bf94 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpgt.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpgt.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmple.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmple.c
index a8327c5e5b..8053985f9b 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmple.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmple.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmple.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmplt.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmplt.c
index 8d0e143cb4..cd166440ef 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmplt.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmplt.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmplt.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c
index fa91120a6c..36fd3468cc 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_dcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpeq.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpeq.c
index 83db09e6a4..ccea1f75e1 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpeq.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpeq.c
@@ -18,7 +18,6 @@
* Written by Ben Harris, 2000. This file is in the Public Domain.
*/
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmpeq.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpge.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpge.c
index db59a98822..69dabbdf94 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpge.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpge.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmpge.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpgt.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpgt.c
index 6d6dea6088..5739a2d6c6 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpgt.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpgt.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmpgt.c,v 1.2 2013/04/16 13:38:34 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmple.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmple.c
index 84c0355e2e..8534b30fc4 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmple.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmple.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmple.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmplt.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmplt.c
index a421e8ce21..e5b12cdef2 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmplt.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmplt.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmplt.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpun.c b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpun.c
index 403afba17e..903066f3ff 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpun.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_fcmpun.c
@@ -22,7 +22,6 @@
#include "milieu.h"
#include "softfloat.h"
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: __aeabi_fcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
index 7fefb107a8..39c74bf1a3 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
+++ b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
@@ -46,3 +46,4 @@
[BuildOptions]
GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-tree-vrp
+ RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC
diff --git a/ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat.c b/ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat.c
index a513bf94e1..759b8a0077 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat.c
+++ b/ArmPkg/Library/ArmSoftFloatLib/bits32/softfloat.c
@@ -51,7 +51,6 @@ this code that are retained.
===============================================================================
*/
-#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: softfloat.c,v 1.3 2013/01/10 08:16:11 matt Exp $");
#endif /* LIBC_SCCS and not lint */
diff --git a/ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize b/ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize
index 13ada988d1..4c99d0ae99 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize
+++ b/ArmPkg/Library/ArmSoftFloatLib/softfloat-specialize
@@ -32,10 +32,6 @@ this code that are retained.
===============================================================================
*/
-#include <signal.h>
-#include <string.h>
-#include <unistd.h>
-
/*
-------------------------------------------------------------------------------
Underflow tininess-detection mode, statically initialized to default value.