summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/wscript
blob: 2ab7114e636e4c3285cb965d2060905d0fc01059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
def build(ctx):
	source = []

	source_newlib= [
		"src/readv.c",
		"src/writev.c"
	]
	ctx.cpu.newlib(
		source_newlib,
		features="src_include src_include_rtems src_include_score"
	)

	# ERROR_C_FILES
	source += [
		"src/error.c",
		"src/__assert.c"
	]

	# ASSOCIATION_C_FILES
	source += [
		"src/assoclocalbyname.c",
		"src/assoclocalbyremotebitfield.c",
		"src/assoclocalbyremote.c",
		"src/assocnamebad.c",
		"src/assocnamebylocalbitfield.c",
		"src/assocnamebylocal.c",
		"src/assocnamebyremotebitfield.c",
		"src/assocnamebyremote.c",
		"src/assocptrbylocal.c",
		"src/assocptrbyname.c",
		"src/assocptrbyremote.c",
		"src/assocremotebylocalbitfield.c",
		"src/assocremotebylocal.c",
		"src/assocremotebyname.c"
	]

	# BASE_FS_C_FILES
	source += [
		"src/base_fs.c",
		"src/mount.c",
		"src/unmount.c",
		"src/libio.c",
		"src/mount-mgr.c",
		"src/mount-mktgt.c",
		"src/libio_init.c",
		"src/privateenv.c",
		"src/open_dev_console.c",
		"src/__usrenv.c",
		"src/rtems_mkdir.c"
	]


	# TERMIOS_C_FILES
	source += [
		"src/cfgetispeed.c",
		"src/cfgetospeed.c",
		"src/cfsetispeed.c",
		"src/cfsetospeed.c",
		"src/tcgetattr.c",
		"src/tcsetattr.c",
		"src/tcdrain.c",
		"src/tcflow.c",
		"src/tcflush.c",
		"src/tcgetpgrp.c",
		"src/tcsendbreak.c",
		"src/tcsetpgrp.c",
		"src/termios.c",
		"src/termiosinitialize.c",
		"src/termios_baud2index.c",
		"src/termios_baud2num.c",
		"src/termios_num2baud.c",
		"src/termios_setinitialbaud.c",
		"src/termios_baudtable.c",
		"src/termios_setbestbaud.c"
	]

	# SYSTEM_CALL_C_FILES
	source += [
		"src/open.c",
		"src/close.c",
		"src/read.c",
		"src/write.c",
		"src/write_r.c",
		"src/lseek.c",
		"src/ioctl.c",
		"src/mkdir.c",
		"src/mknod.c",
		"src/mkfifo.c",
		"src/rmdir.c",
		"src/chdir.c",
		"src/chmod.c",
		"src/fchdir.c",
		"src/fchmod.c",
		"src/fchown.c",
		"src/chown.c",
		"src/link.c",
		"src/unlink.c",
		"src/umask.c",
		"src/ftruncate.c",
		"src/utime.c",
		"src/fstat.c",
		"src/fcntl.c",
		"src/fpathconf.c",
		"src/getdents.c",
		"src/fsync.c",
		"src/fdatasync.c",
		"src/dup.c",
		"src/dup2.c",
		"src/symlink.c",
		"src/readlink.c",
		"src/chroot.c",
		"src/sync.c",
		"src/_rename_r.c",
		"src/statvfs.c",
		"src/utimes.c",
		"src/lchown.c"
	]

	# ID_C_FILES
	source += [
		"src/getegid.c",
		"src/geteuid.c",
		"src/getgid.c",
		"src/getgroups.c",
		"src/getlogin.c",
		"src/getpgrp.c",
		"src/getpid.c",
		"src/getppid.c",
		"src/getuid.c",
		"src/setgid.c",
		"src/setuid.c",
		"src/seteuid.c",
		"src/setpgid.c",
		"src/setsid.c",
		"src/setegid.c"
	]

	# MALLOC_C_FILES
	source += [
		"src/_calloc_r.c",
		"src/_free_r.c",
		"src/_malloc_r.c",
		"src/_realloc_r.c",
		"src/calloc.c",
		"src/free.c",
		"src/malloc.c",
		"src/malloc_deferred.c",
		"src/malloc_dirtier.c",
		"src/malloc_initialize.c",
		"src/malloc_walk.c",
		"src/mallocfreespace.c",
		"src/mallocgetheapptr.c",
		"src/mallocinfo.c",
		"src/mallocsetheapptr.c",
		"src/posix_memalign.c",
		"src/realloc.c",
		"src/rtems_heap_extend.c",
		"src/rtems_memalign.c",
	]


	# TERMINAL_IDENTIFICATION_C_FILES
	source += [
		"src/isatty_r.c"
	]

	# LIBC_GLUE_C_FILES
	source += [
		"src/__getpid.c",
		"src/__gettod.c",
		"src/__times.c",
		"src/truncate.c",
		"src/access.c",
		"src/stat.c",
		"src/lstat.c",
		"src/pathconf.c",
		"src/newlibc_reent.c",
		"src/newlibc_exit.c",
		"src/kill_noposix.c",
		"src/utsname.c"
	]

	# BSD_LIBC_C_FILES
	source += [
		"src/issetugid.c"
	]

	source += [
		"src/gxx_wrappers.c",
		"src/getchark.c",
		"src/printk.c",
		"src/printk_plugin.c",
		"src/putk.c",
		"src/vprintk.c",
	]

	source += [
		"src/getpagesize.c",
		"src/getrusage.c",
		"src/flockfile.c",
		"src/funlockfile.c",
		"src/ftrylockfile.c"
	]

	source += [
		"src/getpwent.c",
		"src/clonenode.c",
		"src/ctermid.c",
		"src/rtems_putc.c",
		"src/libio_exit.c",
		"src/rtems_heap_null_extend.c",
		"src/sup_fs_check_permissions.c",
		"src/sup_fs_deviceio.c",
		"src/sup_fs_eval_path.c",
		"src/sup_fs_eval_path_generic.c",
		"src/sup_fs_exist_in_same_instance.c",
		"src/sup_fs_location.c",
		"src/sup_fs_mount_iterate.c",
		"src/sup_fs_next_token.c",
		"src/rtems_heap_extend_via_sbrk.c",
		"src/resource_snapshot.c",
		"src/rtems_heap_greedy.c",
		"src/printf_plugin.c",
		"src/freenode.c",
		"src/cachealignedalloc.c",
		"src/pwdgrp.c",
		"src/getgrent.c",
		"src/getgrnam.c",
		"src/cachecoherentalloc.c",
	# New files not sorted into categories above!
		"src/arc4random_getentropy_fail.c",
		"src/assoc32tostring.c",
		"src/assocthreadstatestostring.c",
		"src/cfmakeraw.c",
		"src/cfmakesane.c",
		"src/cfsetspeed.c",
		"src/clock.c",
		"src/consolesimple.c",
		"src/consolesimpleread.c",
		"src/consolesimpletask.c",
		"src/posix_devctl.c",
		"src/print_fprintf.c",
		"src/print_printf.c",
		"src/printerfprintfputc.c",
		"src/printertask.c",
		"src/realpath.c",
		"src/setgroups.c",
		"src/uenvgetgroups.c",
	]


	ctx.cpu.source(
		source,
		alias="csupport",
		features="src_include src_include_rtems src_include_score"
	)