2 # Generate nltvals.def, a file that describes various target values
3 # used by the host/target interface.
5 # Syntax: /bin/sh gennltvals.sh shell srcroot cpp
11 srccom
=$srcroot/sim
/common
13 echo '/* Newlib/libgloss macro values needed by remote target support. */'
14 echo '/* This file is machine generated by gennltvals.sh. */'
16 $shell ${srccom}/gentvals.sh
"" errno
${srcroot}/newlib
/libc
/include \
17 "errno.h sys/errno.h" 'E[A-Z0-9]*' "${cpp}"
19 $shell ${srccom}/gentvals.sh
"" signal
${srcroot}/newlib
/libc
/include \
20 "signal.h sys/signal.h" 'SIG[A-Z0-9]*' "${cpp}"
22 $shell ${srccom}/gentvals.sh
"" open
${srcroot}/newlib
/libc
/include \
23 "fcntl.h sys/fcntl.h" 'O_[A-Z0-9]*' "${cpp}"
25 # Unfortunately, each newlib/libgloss port has seen fit to define their own
26 # syscall.h file. This means that system call numbers can vary for each port.
27 # Support for all this crud is kept here, rather than trying to get too fancy.
28 # If you want to try to improve this, please do, but don't break anything.
29 # Note that there is a standard syscall.h file (libgloss/syscall.h) now which
30 # hopefully more targets can use.
32 targets
="d30v m32r sparc"
37 d30v
) dir
=libgloss macro
=d30v
;;
38 m32r
) dir
=libgloss
/m32r
/sys macro
=m32r
;;
39 sparc
) dir
=libgloss macro
=sparc
;;
42 $shell ${srccom}/gentvals.sh
$macro sys
${srcroot}/$dir \
43 "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
This page took 0.030992 seconds and 4 git commands to generate.