Module Name:    src
Committed By:   christos
Date:           Thu Oct 24 03:19:14 UTC 2019

Modified Files:
        src/tools/gcc: Makefile mknative-gcc

Log Message:
arm needs more files


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/tools/gcc/Makefile
cvs rdiff -u -r1.102 -r1.103 src/tools/gcc/mknative-gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gcc/Makefile
diff -u src/tools/gcc/Makefile:1.95 src/tools/gcc/Makefile:1.96
--- src/tools/gcc/Makefile:1.95	Mon Sep 30 04:40:20 2019
+++ src/tools/gcc/Makefile	Wed Oct 23 23:19:14 2019
@@ -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 @@ NATIVE_CONFIGURE_ARGS+= --disable-shared
 .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 \

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.102 src/tools/gcc/mknative-gcc:1.103
--- src/tools/gcc/mknative-gcc:1.102	Wed Oct 16 02:57:24 2019
+++ src/tools/gcc/mknative-gcc	Wed Oct 23 23:19:14 2019
@@ -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 @@ __EOF__
 
 	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
 }

Reply via email to