Source-Changes-HG archive

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

[src/trunk]: src/tools/gcc arm needs more files



details:   https://anonhg.NetBSD.org/src/rev/d086f7c54549
branches:  trunk
changeset: 966288:d086f7c54549
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 24 03:19:14 2019 +0000

description:
arm needs more files

diffstat:

 tools/gcc/Makefile     |  5 ++++-
 tools/gcc/mknative-gcc |  8 +++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 1f4f72f72789 -r d086f7c54549 tools/gcc/Makefile
--- a/tools/gcc/Makefile        Wed Oct 23 21:40:36 2019 +0000
+++ b/tools/gcc/Makefile        Thu Oct 24 03:19:14 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.95 2019/09/30 08:40:20 mrg Exp $
+#      $NetBSD: Makefile,v 1.96 2019/10/24 03:19:14 christos Exp $
 
 .include <bsd.hostinit.mk>
 
@@ -190,6 +190,9 @@
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 EXTRA_GCC_TARGETS=     i386-builtin-types.inc
 .endif
+.if !empty(MACHINE_ARCH:M*arm*)
+EXTRA_GCC_TARGETS=     arm-cpu-data.h arm-cpu-cdata.h
+.endif
 
 NATIVE_CONFIGURE_ARGS+=        \
                        --disable-multilib \
diff -r 1f4f72f72789 -r d086f7c54549 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Wed Oct 23 21:40:36 2019 +0000
+++ b/tools/gcc/mknative-gcc    Thu Oct 24 03:19:14 2019 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.102 2019/10/16 06:57:24 mrg Exp $
+#      $NetBSD: mknative-gcc,v 1.103 2019/10/24 03:19:14 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of gcc.
@@ -425,8 +425,10 @@
 
        case "${MACHINE_ARCH}" in
        (*arm*)
-               write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/arm-cpu.h <$_TMPDIR/gcc/arm-cpu.h
-               write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/arm-isa.h <$_TMPDIR/gcc/arm-isa.h
+               d=$_OUTDIRBASE/usr.bin/$_subdir/arch/${MACHINE_ARCH}
+               for f in arm-cpu.h arm-cpu-cdata.h arm-cpu-data.h arm-isa.h; do
+                       write_c $d/$f <$_TMPDIR/gcc/$f
+               done
                ;;
        esac
 }



Home | Main Index | Thread Index | Old Index