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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 330 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
# JPB 30 Jun 2010. Added sys/_default_fcntl.h.
23
$shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
24
        "fcntl.h sys/fcntl.h sys/_default_fcntl.h" 'O_[A-Z0-9]*' "${cpp}"
25
 
26
# Unfortunately, each newlib/libgloss port has seen fit to define their own
27
# syscall.h file.  This means that system call numbers can vary for each port.
28
# Support for all this crud is kept here, rather than trying to get too fancy.
29
# If you want to try to improve this, please do, but don't break anything.
30
# Note that there is a standard syscall.h file (libgloss/syscall.h) now which
31
# hopefully more targets can use.
32
 
33
dir=newlib/libc/sys/d10v/sys target=d10v
34
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
35
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
36
 
37
# OBSOLETE dir=libgloss target=d30v
38
# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
39
# OBSOLETE      "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
40
 
41
dir=libgloss target=cr16
42
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
43
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
44
 
45
dir=libgloss target=fr30
46
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
47
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
48
 
49
dir=libgloss target=frv
50
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
51
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
52
 
53
dir=libgloss/i960 target=i960
54
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
55
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
56
 
57
dir=libgloss target=m32r
58
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
59
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
60
 
61
dir=libgloss target=mn10200
62
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
63
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
64
 
65
dir=libgloss target=mn10300
66
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
67
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
68
 
69
dir=libgloss target=or32
70
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
71
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
72
 
73
dir=libgloss target=sparc
74
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
75
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
76
 
77
dir=libgloss/v850/sys target=v850
78
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
79
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
80
 
81
dir=libgloss target=lm32
82
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
83
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"

powered by: WebSVN 2.1.0

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