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> .include <bsd.hostinit.mk>
@ -190,6 +190,9 @@ NATIVE_CONFIGURE_ARGS+= --disable-shared
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
EXTRA_GCC_TARGETS= i386-builtin-types.inc EXTRA_GCC_TARGETS= i386-builtin-types.inc
.endif .endif
.if !empty(MACHINE_ARCH:M*arm*)
EXTRA_GCC_TARGETS= arm-cpu-data.h arm-cpu-cdata.h
.endif
NATIVE_CONFIGURE_ARGS+= \ NATIVE_CONFIGURE_ARGS+= \
--disable-multilib \ --disable-multilib \

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # Shell script for generating all the constants needed for a native
# platform build of gcc. # platform build of gcc.
@ -425,8 +425,10 @@ __EOF__
case "${MACHINE_ARCH}" in case "${MACHINE_ARCH}" in
(*arm*) (*arm*)
write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/arm-cpu.h <$_TMPDIR/gcc/arm-cpu.h d=$_OUTDIRBASE/usr.bin/$_subdir/arch/${MACHINE_ARCH}
write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/arm-isa.h <$_TMPDIR/gcc/arm-isa.h 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 esac
} }