Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib Possibly build libc_vfp if MACHINE_CPU is aarch64 too.



details:   https://anonhg.NetBSD.org/src/rev/e2b4d0991868
branches:  trunk
changeset: 339246:e2b4d0991868
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jul 08 01:08:24 2015 +0000

description:
Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp

diffstat:

 lib/Makefile          |  4 ++--
 lib/libc_vfp/Makefile |  4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 9994cfcbbeab -r e2b4d0991868 lib/Makefile
--- a/lib/Makefile      Wed Jul 08 01:06:40 2015 +0000
+++ b/lib/Makefile      Wed Jul 08 01:08:24 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.225 2015/06/23 16:33:21 matt Exp $
+#      $NetBSD: Makefile,v 1.226 2015/07/08 01:08:24 matt Exp $
 #      from: @(#)Makefile      5.25.1.1 (Berkeley) 5/7/91
 
 .include <bsd.own.mk>
@@ -33,7 +33,7 @@
 SUBDIR+=       libkern
 .endif
 
-.if (${MACHINE_CPU} == "arm")
+.if (${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64")
 LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
 .if empty(LIBC_MACHINE_ARCH:M*hf*)
 SUBDIR+=       libc_vfp
diff -r 9994cfcbbeab -r e2b4d0991868 lib/libc_vfp/Makefile
--- a/lib/libc_vfp/Makefile     Wed Jul 08 01:06:40 2015 +0000
+++ b/lib/libc_vfp/Makefile     Wed Jul 08 01:08:24 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2013/08/19 22:22:23 matt Exp $
+#      $NetBSD: Makefile,v 1.4 2015/07/08 01:08:24 matt Exp $
 #
 
 LIB=           c_vfp
@@ -10,5 +10,7 @@
 CPUFLAGS+=     -mfpu=vfp -marm
 
 SRCS=          vfpsf.S vfpdf.S
+AFLAGS.vfpsf.S+=       -mfpu=vfp
+AFLAGS.vfpdf.S+=       -mfpu=vfp
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index