move the GDB_MACHINE_ARCH setting into a separate file so tools can

access it.  modify it such that it's "arm" or "armeb" for all arm,
but only in new gdb, not gdb.old (avoid changing gdb.old as much
as possible now.)
This commit is contained in:
mrg 2016-10-16 04:36:51 +00:00
parent 47f5dba6de
commit b0273061d2
4 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,3 @@
# $NetBSD#
GDB_MACHINE_ARCH= ${MACHINE_ARCH:C/armv[4-7]/arm/}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.7 2016/10/12 15:36:05 christos Exp $ # $NetBSD: Makefile.inc,v 1.8 2016/10/16 04:36:51 mrg Exp $
USE_LIBEDIT=no USE_LIBEDIT=no
USE_TUI=yes USE_TUI=yes
@ -6,7 +6,7 @@ BINDIR=/usr/bin
WARNS?= 0 WARNS?= 0
CPPFLAGS+= -D_KERNTYPES CPPFLAGS+= -D_KERNTYPES
GDB_MACHINE_ARCH= ${MACHINE_ARCH:C/armv[4-7]/arm/} .include "Makefile.gdb_arch"
CWARNFLAGS.clang+= -Wno-unused-value -Wno-conversion \ CWARNFLAGS.clang+= -Wno-unused-value -Wno-conversion \
-Wno-switch-enum -Wno-parentheses -Wno-comment \ -Wno-switch-enum -Wno-parentheses -Wno-comment \

3
external/gpl3/gdb/Makefile.gdb_arch vendored Normal file
View File

@ -0,0 +1,3 @@
# $NetBSD#
GDB_MACHINE_ARCH= ${MACHINE_ARCH:C/^e//:C/e?armv[4-7]h?f?/arm/}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.10 2016/01/23 23:02:31 christos Exp $ # $NetBSD: Makefile.inc,v 1.11 2016/10/16 04:36:52 mrg Exp $
USE_LIBEDIT=no USE_LIBEDIT=no
USE_TUI=yes USE_TUI=yes
@ -6,7 +6,7 @@ BINDIR=/usr/bin
WARNS?= 0 WARNS?= 0
CPPFLAGS+= -D_KERNTYPES CPPFLAGS+= -D_KERNTYPES
GDB_MACHINE_ARCH= ${MACHINE_ARCH:C/armv[4-7]/arm/} .include "Makefile.gdb_arch"
CWARNFLAGS.clang+= -Wno-unused-value -Wno-conversion \ CWARNFLAGS.clang+= -Wno-unused-value -Wno-conversion \
-Wno-switch-enum -Wno-parentheses -Wno-comment \ -Wno-switch-enum -Wno-parentheses -Wno-comment \