diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-11-30 08:57:03 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-11-30 08:57:03 +0000 |
commit | c75f83719457fa0fc786b14c4ab8470da63cfeb3 (patch) | |
tree | a7dde8015b264f79d2ca98cf9d18a1a6e083dc6e /ArmPkg/Library/ArmSoftFloatLib | |
parent | 1dbda2b4cfd60e5955cde98aec6537816af8be5e (diff) | |
download | edk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.zip edk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.tar.gz edk2-c75f83719457fa0fc786b14c4ab8470da63cfeb3.tar.bz2 |
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/Library/ArmSoftFloatLib')
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 8bde7a5..614c7c6 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 c153feb..5062a28 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 5fb1606..b98652b 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 a8327c5..8053985 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 8d0e143..cd16644 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 fa91120..36fd346 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 83db09e..ccea1f7 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 db59a98..69dabbd 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 6d6dea6..5739a2d 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 84c0355..8534b30 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 a421e8c..e5b12cd 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 403afba..903066f 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 7fefb10..39c74bf 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 a513bf9..759b8a0 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 13ada98..4c99d0a 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.
|