arm needs more files

This commit is contained in:
christos 2019-10-24 03:19:14 +00:00
parent 6e824db87c
commit eba0817981
2 changed files with 9 additions and 4 deletions

View File

@ -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 \

View File

@ -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
}