OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [common/] [gennltvals.sh] - Blame information for rev 280

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
#! /bin/sh
2
# Generate nltvals.def, a file that describes various newlib/libgloss
3
# target values used by the host/target interface.
4
#
5
# Syntax: /bin/sh gennltvals.sh shell srcroot cpp
6
 
7
shell=$1
8
srcroot=$2
9
cpp=$3
10
 
11
srccom=$srcroot/sim/common
12
 
13
echo '/* Newlib/libgloss macro values needed by remote target support.  */'
14
echo '/* This file is machine generated by gennltvals.sh.  */'
15
 
16
$shell ${srccom}/gentvals.sh "" errno ${srcroot}/newlib/libc/include \
17
        "errno.h sys/errno.h" 'E[A-Z0-9]*' "${cpp}"
18
 
19
$shell ${srccom}/gentvals.sh "" signal ${srcroot}/newlib/libc/include \
20
        "signal.h sys/signal.h" 'SIG[A-Z0-9]*' "${cpp}"
21
 
22
$shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
23 147 jeremybenn
        "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[A-Z0-9]*' "${cpp}"
24 24 jeremybenn
 
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.
31
 
32
dir=newlib/libc/sys/d10v/sys target=d10v
33
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
34
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
35
 
36
# OBSOLETE dir=libgloss target=d30v
37
# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
38
# OBSOLETE      "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
39
 
40
dir=libgloss target=fr30
41
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
42
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
43
 
44
dir=libgloss target=frv
45
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
46
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
47
 
48
dir=libgloss/i960 target=i960
49
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
50
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
51
 
52
dir=libgloss target=m32r
53
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
54
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
55
 
56 147 jeremybenn
dir=libgloss target=or32
57
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
58
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
59
 
60 24 jeremybenn
dir=libgloss target=mn10200
61
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
62
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
63
 
64
dir=libgloss target=mn10300
65
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
66
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
67
 
68
dir=libgloss target=sparc
69
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
70
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
71
 
72
dir=libgloss/v850/sys target=v850
73
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
74
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
75
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.