2 # Generate nltvals.def, a file that describes various newlib/libgloss
3 # target values 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[[:upper:][:digit:]]*' "${cpp}"
19 $shell ${srccom}/gentvals.sh
"" signal
${srcroot}/newlib
/libc
/include \
20 "signal.h sys/signal.h" 'SIG[[:upper:][:digit:]]*' "${cpp}"
22 $shell ${srccom}/gentvals.sh
"" open
${srcroot}/newlib
/libc
/include \
23 "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[[:upper:][:digit:]]*' "${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 dir
=libgloss target
=bfin
33 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
34 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
36 dir
=newlib
/libc
/sys
/d10v
/sys target
=d10v
37 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
38 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
40 # OBSOLETE dir=libgloss target=d30v
41 # OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
42 # OBSOLETE "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
44 dir
=libgloss
/cr16
/sys target
=cr16
45 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
46 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
48 dir
=libgloss target
=fr30
49 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
50 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
52 dir
=libgloss target
=frv
53 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
54 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
56 dir
=libgloss
/i960 target
=i960
57 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
58 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
60 dir
=libgloss target
=m32r
61 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
62 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
64 dir
=libgloss target
=mn10200
65 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
66 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
68 dir
=libgloss target
=mn10300
69 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
70 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
72 dir
=libgloss target
=msp430
73 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
74 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
76 dir
=libgloss target
=sparc
77 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
78 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
80 dir
=libgloss
/v850
/sys target
=v850
81 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
82 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
84 dir
=libgloss target
=lm32
85 $shell ${srccom}/gentvals.sh
$target sys
${srcroot}/$dir \
86 "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"