- get SIM_OBS for GDB.

- build a usr.bin/sim/arch tree, copy sim/ppc/config.h there for powerpc.
This commit is contained in:
mrg 2002-01-22 13:13:00 +00:00
parent ef3617499c
commit e10f2bf04d

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: toolchain2netbsd,v 1.13 2001/12/05 22:37:40 rafal Exp $
# $NetBSD: toolchain2netbsd,v 1.14 2002/01/22 13:13:00 mrg Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/gnu/dist/toolchain.
@ -266,7 +266,7 @@ mkdir -p usr.bin/gdb/arch/$MACHINE_ARCH
{
getvars gdb/Makefile \
INTERNAL_CFLAGS LIBGDB_OBS
INTERNAL_CFLAGS LIBGDB_OBS SIM_OBJS
getvars readline/Makefile \
CCFLAGS OBJECTS
} | write_mk usr.bin/gdb/arch/$MACHINE_ARCH/defs.mk
@ -284,4 +284,18 @@ for f in nm tm xm; do
| write_c usr.bin/gdb/arch/$MACHINE_ARCH/$f.h
done
##### gnu/usr.bin/sim #####
if [ -n `getvars gdb/Makefile SIM` ]; then
mkdir -p usr.bin/sim/arch/$MACHINE_ARCH
case $MACHINE_ARCH in
powerpc*)
write_c usr.bin/sim/arch/$MACHINE_ARCH/config.h <$_TMPDIR/sim/ppc/config.h
;;
*)
;;
esac
fi
# -rm -rf ${_TMPDIR}