c28c63d86b
2009-05-18 Jon Beniston <jon@beniston.com> * MAINTAINERS: Add lm32 target. * Makefile.in: Add lm32 dependencies. * NEWS: Indicate lm32 is a new target. * configure.tgt: Add lm32 targets. * lm32-tdep.c: New file. gdb/testsuite 2009-05-18 Jon Beniston <jon@beniston.com> * gdb.asm/asm-source.exp: Add lm32 target. include/gdb/ 2009-05-18 Jon Beniston <jon@beniston.com> * sim-lm32.h: New file. sim/ 2009-05-18 Jon Beniston <jon@beniston.com> * MAINTAINERS: Add Jon Beniston as maintainer of lm32 sim. * configure.ac: Add lm32 target. * lm32: New directory. sim/common 2009-05-18 Jon Beniston <jon@beniston.com> * gennltvals.sh: Add lm32 target. * nltvals.def: Add lm32 syscall definitions. sim/lm32/ 2009-05-18 Jon Beniston <jon@beniston.com> * Makefile.in: New file. * arch.c: New file. * arch.h: New file. * config.in: New file. * configure: New file. * configure.ac: New file. * cpu.c: New file. * cpu.h: New file. * cpuall.h: New file. * decode.c: New file. * decode.h: New file. * dv-lm32cpu.c: New file. * dv-lm32timer.c: New file. * dv-lm32uart.c: New file. * lm32.c: New file. * lm32-sim.h: New file. * mloop.in: New file. * model.c: New file. * sem.c: New file. * sem-switch.c: New file. * sim-if.c: New file. * sim-main.c: New file. * tconfig.in: New file. * traps.c: New file. * user.c: New file.
78 lines
2.7 KiB
Bash
78 lines
2.7 KiB
Bash
#! /bin/sh
|
|
# Generate nltvals.def, a file that describes various newlib/libgloss
|
|
# target values used by the host/target interface.
|
|
#
|
|
# Syntax: /bin/sh gennltvals.sh shell srcroot cpp
|
|
|
|
shell=$1
|
|
srcroot=$2
|
|
cpp=$3
|
|
|
|
srccom=$srcroot/sim/common
|
|
|
|
echo '/* Newlib/libgloss macro values needed by remote target support. */'
|
|
echo '/* This file is machine generated by gennltvals.sh. */'
|
|
|
|
$shell ${srccom}/gentvals.sh "" errno ${srcroot}/newlib/libc/include \
|
|
"errno.h sys/errno.h" 'E[A-Z0-9]*' "${cpp}"
|
|
|
|
$shell ${srccom}/gentvals.sh "" signal ${srcroot}/newlib/libc/include \
|
|
"signal.h sys/signal.h" 'SIG[A-Z0-9]*' "${cpp}"
|
|
|
|
$shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
|
|
"fcntl.h sys/fcntl.h" 'O_[A-Z0-9]*' "${cpp}"
|
|
|
|
# Unfortunately, each newlib/libgloss port has seen fit to define their own
|
|
# syscall.h file. This means that system call numbers can vary for each port.
|
|
# Support for all this crud is kept here, rather than trying to get too fancy.
|
|
# If you want to try to improve this, please do, but don't break anything.
|
|
# Note that there is a standard syscall.h file (libgloss/syscall.h) now which
|
|
# hopefully more targets can use.
|
|
|
|
dir=newlib/libc/sys/d10v/sys target=d10v
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
# OBSOLETE dir=libgloss target=d30v
|
|
# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
# OBSOLETE "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=cr16
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=fr30
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=frv
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss/i960 target=i960
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=m32r
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=mn10200
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=mn10300
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=sparc
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss/v850/sys target=v850
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|
|
|
|
dir=libgloss target=lm32
|
|
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
|
|
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
|