]>
Commit | Line | Data |
---|---|---|
4cf0d223 FW |
1 | # Option to pass to Python scripts to set the C compiler. Rewriting |
2 | # MODULE_NAME is required to enable the _ISOMAC verbatim header | |
3 | # environment. | |
4 | sysdeps-linux-python-cc = \ | |
5 | --cc="$(CC) $(patsubst -DMODULE_NAME=%,-DMODULE_NAME=testsuite,$(CPPFLAGS))" | |
6 | ||
7 | # Additional dependencies for Python scripts. | |
8 | sysdeps-linux-python-deps = \ | |
320768a6 | 9 | $(..)scripts/glibcextract.py \ |
dccee96e | 10 | $(..)sysdeps/unix/sysv/linux/glibcsyscalls.py \ |
320768a6 | 11 | # sysdeps-linux-python-deps |
4cf0d223 FW |
12 | |
13 | # Invocation of the Python interpreter with the Python search path. | |
14 | sysdeps-linux-python = \ | |
15 | PYTHONPATH=$(..)scripts:$(..)sysdeps/unix/sysv/linux $(PYTHON) | |
16 | ||
17 | ifndef subdir | |
18 | # This target performs two actions: | |
19 | # | |
20 | # Replace <arch-syscall.h> with a file generated from kernel headers | |
21 | # and <fixup-asm-unistd.h>. Both files are located via the sysdeps | |
22 | # override search path. | |
23 | # | |
24 | # Update sysdeps/unix/sysv/linux/syscall-names.list with additional | |
25 | # names found in the generated <arch-syscall.h> file, so that the | |
26 | # global system call names list is a superset of the | |
27 | # architecture-specific system call names. | |
28 | # | |
29 | # To bootstrap a new architecture, create an empty file in the right | |
c363f834 | 30 | # place and run `make update-syscall-lists' from the top-level of a |
4cf0d223 FW |
31 | # configured, but not-yet-built glibc tree. |
32 | # | |
33 | # --lock points to a file not replaced during the update operation, so | |
34 | # that mutual exclusion is achieved. | |
35 | .PHONY: update-syscall-lists | |
36 | update-syscall-lists: arch-syscall.h | |
37 | $(sysdeps-linux-python) \ | |
38 | sysdeps/unix/sysv/linux/update-syscall-lists.py \ | |
39 | $(sysdeps-linux-python-cc) \ | |
40 | --lock=sysdeps/unix/sysv/linux/update-syscall-lists.py $< \ | |
41 | sysdeps/unix/sysv/linux/syscall-names.list | |
42 | endif | |
43 | ||
8d57beea | 44 | ifeq ($(subdir),csu) |
320768a6 AZ |
45 | sysdep_routines += \ |
46 | errno-loc \ | |
47 | # sysdep_routines | |
39778c6c UD |
48 | endif |
49 | ||
2c008571 UD |
50 | ifeq ($(subdir),assert) |
51 | CFLAGS-assert.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>' | |
52 | CFLAGS-assert-perr.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>' | |
53 | endif | |
54 | ||
a1648746 | 55 | ifeq ($(subdir),malloc) |
7c2842bf | 56 | CFLAGS-malloc.c += -DMORECORE_CLEARS=2 |
a1648746 UD |
57 | endif |
58 | ||
8d57beea | 59 | ifeq ($(subdir),misc) |
9a5b1d84 FW |
60 | sysdep_routines += \ |
61 | adjtimex \ | |
62 | clock_adjtime \ | |
63 | clone \ | |
64 | clone-internal \ | |
0d6f9f62 | 65 | clone-pidfd-support \ |
9a5b1d84 FW |
66 | clone3 \ |
67 | closefrom_fallback \ | |
68 | convert_scm_timestamps \ | |
c1c0dea3 | 69 | epoll_create \ |
9a5b1d84 FW |
70 | epoll_pwait \ |
71 | epoll_pwait2 \ | |
72 | epoll_wait \ | |
73 | eventfd \ | |
74 | eventfd_read \ | |
75 | eventfd_write \ | |
76 | fanotify_mark \ | |
77 | fxstat \ | |
78 | fxstat64 \ | |
79 | fxstatat \ | |
80 | fxstatat64 \ | |
c1c0dea3 | 81 | inotify_init \ |
9a5b1d84 FW |
82 | lxstat \ |
83 | lxstat64 \ | |
84 | mlock2 \ | |
85 | mremap \ | |
86 | open_by_handle_at \ | |
87 | personality \ | |
88 | pkey_get \ | |
89 | pkey_mprotect \ | |
90 | pkey_set \ | |
91 | prctl \ | |
92 | prlimit \ | |
93 | prlimit64 \ | |
94 | process_vm_readv \ | |
95 | process_vm_writev \ | |
96 | pselect32 \ | |
97 | readahead \ | |
98 | setfsgid \ | |
99 | setfsuid \ | |
100 | signalfd \ | |
101 | splice \ | |
102 | sysctl \ | |
103 | tee \ | |
104 | timerfd_gettime \ | |
105 | timerfd_settime \ | |
106 | umount \ | |
107 | umount2 \ | |
108 | vmsplice \ | |
109 | xmknod \ | |
110 | xmknodat \ | |
111 | xstat \ | |
112 | xstat64 \ | |
dccee96e | 113 | # sysdep_routines |
84724245 | 114 | |
ce42435c | 115 | CFLAGS-gethostid.c = -fexceptions |
2de15b61 | 116 | CFLAGS-tee.c = -fexceptions -fasynchronous-unwind-tables |
1d71a631 AZ |
117 | CFLAGS-vmsplice.c = -fexceptions -fasynchronous-unwind-tables |
118 | CFLAGS-splice.c = -fexceptions -fasynchronous-unwind-tables | |
119 | CFLAGS-open_by_handle_at.c = -fexceptions -fasynchronous-unwind-tables | |
48d966eb | 120 | CFLAGS-sync_file_range.c = -fexceptions -fasynchronous-unwind-tables |
a04689ee | 121 | CFLAGS-pselect32.c = -fexceptions -fasynchronous-unwind-tables |
5e4e1063 | 122 | CFLAGS-tst-writev.c += "-DARTIFICIAL_LIMIT=(0x80000000-sysconf(_SC_PAGESIZE))" |
ce42435c | 123 | |
20c894d2 FB |
124 | # The test triggers FORTIFY abortion due to purposely wrong parameters |
125 | CFLAGS-test-errno-linux.c += $(no-fortify-source) | |
126 | ||
9a5b1d84 FW |
127 | sysdep_headers += \ |
128 | bits/a.out.h \ | |
129 | bits/epoll.h \ | |
130 | bits/eventfd.h \ | |
131 | bits/inotify.h \ | |
9a5b1d84 FW |
132 | bits/mman-linux.h \ |
133 | bits/mman-map-flags-generic.h \ | |
134 | bits/mman-shared.h \ | |
135 | bits/procfs-extra.h \ | |
136 | bits/procfs-id.h \ | |
137 | bits/procfs-prregset.h \ | |
138 | bits/procfs.h \ | |
139 | bits/pthread_stack_min-dynamic.h \ | |
140 | bits/pthread_stack_min.h \ | |
141 | bits/ptrace-shared.h \ | |
142 | bits/rseq.h \ | |
143 | bits/shmlba.h \ | |
144 | bits/siginfo-arch.h \ | |
145 | bits/siginfo-consts-arch.h \ | |
146 | bits/signalfd.h \ | |
147 | bits/socket_type.h \ | |
148 | bits/struct_stat.h \ | |
149 | bits/struct_stat_time64_helper.h \ | |
150 | bits/syscall.h \ | |
151 | bits/termios-baud.h \ | |
152 | bits/termios-c_cc.h \ | |
153 | bits/termios-c_cflag.h \ | |
154 | bits/termios-c_iflag.h \ | |
155 | bits/termios-c_lflag.h \ | |
156 | bits/termios-c_oflag.h \ | |
157 | bits/termios-misc.h \ | |
158 | bits/termios-struct.h \ | |
159 | bits/termios-tcflow.h \ | |
160 | bits/timerfd.h \ | |
161 | bits/types/struct_msqid64_ds.h \ | |
162 | bits/types/struct_msqid64_ds_helper.h \ | |
9a5b1d84 FW |
163 | bits/types/struct_semid64_ds.h \ |
164 | bits/types/struct_semid64_ds_helper.h \ | |
165 | bits/types/struct_semid_ds.h \ | |
166 | bits/types/struct_shmid64_ds.h \ | |
167 | bits/types/struct_shmid64_ds_helper.h \ | |
9a5b1d84 FW |
168 | scsi/scsi.h \ |
169 | scsi/scsi_ioctl.h \ | |
170 | scsi/sg.h \ | |
171 | sys/acct.h \ | |
172 | sys/epoll.h \ | |
173 | sys/eventfd.h \ | |
174 | sys/fanotify.h \ | |
175 | sys/fsuid.h \ | |
176 | sys/inotify.h \ | |
177 | sys/kd.h \ | |
178 | sys/klog.h \ | |
179 | sys/mount.h \ | |
180 | sys/pci.h \ | |
181 | sys/personality.h \ | |
182 | sys/pidfd.h \ | |
183 | sys/prctl.h \ | |
184 | sys/quota.h \ | |
185 | sys/raw.h \ | |
186 | sys/rseq.h \ | |
187 | sys/signalfd.h \ | |
188 | sys/soundcard.h \ | |
189 | sys/timerfd.h \ | |
190 | sys/user.h \ | |
191 | sys/vt.h \ | |
dccee96e | 192 | # sysdep_headers |
9a5b1d84 FW |
193 | |
194 | tests += \ | |
195 | test-errno-linux \ | |
196 | tst-adjtimex \ | |
197 | tst-clock_adjtime \ | |
198 | tst-clone \ | |
199 | tst-clone2 \ | |
200 | tst-clone3 \ | |
5f3a7ebc | 201 | tst-epoll \ |
9a5b1d84 | 202 | tst-fanotify \ |
9faf5262 | 203 | tst-getauxval \ |
9a5b1d84 FW |
204 | tst-gettid \ |
205 | tst-gettid-kill \ | |
206 | tst-memfd_create \ | |
207 | tst-misalign-clone \ | |
208 | tst-mlock2 \ | |
209 | tst-mount \ | |
210 | tst-ntp_adjtime \ | |
211 | tst-ntp_gettime \ | |
212 | tst-ntp_gettimex \ | |
213 | tst-ofdlocks \ | |
214 | tst-personality \ | |
d2a1ec20 | 215 | tst-pidfd \ |
9a5b1d84 FW |
216 | tst-pkey \ |
217 | tst-ppoll \ | |
218 | tst-prctl \ | |
1002f1af | 219 | tst-process_mrelease \ |
9a5b1d84 FW |
220 | tst-quota \ |
221 | tst-rlimit-infinity \ | |
222 | tst-scm_rights \ | |
223 | tst-sigtimedwait \ | |
224 | tst-sync_file_range \ | |
225 | tst-sysconf-iov_max \ | |
226 | tst-sysvmsg-linux \ | |
227 | tst-sysvsem-linux \ | |
228 | tst-sysvshm-linux \ | |
229 | tst-tgkill \ | |
230 | tst-timerfd \ | |
a9fed5ea AZ |
231 | tst-ttyname-direct \ |
232 | tst-ttyname-namespace \ | |
b39ffab8 | 233 | # tests |
a6917c82 | 234 | |
d19ee347 AZ |
235 | # process_madvise requires CAP_SYS_ADMIN. |
236 | xtests += \ | |
237 | tst-process_madvise \ | |
238 | # xtests | |
239 | ||
1fe00d3e | 240 | # For +depfiles in Makerules. |
320768a6 AZ |
241 | extra-test-objs += \ |
242 | tst-sysconf-iov_max-uapi.o \ | |
243 | # extra-test-objs | |
1fe00d3e | 244 | |
a6917c82 FW |
245 | # Test for the symbol version of fcntl that was replaced in glibc 2.28. |
246 | ifeq ($(have-GLIBC_2.27)$(build-shared),yesyes) | |
320768a6 AZ |
247 | tests += \ |
248 | tst-ofdlocks-compat \ | |
249 | # tests | |
a6917c82 FW |
250 | endif |
251 | ||
95e114a0 FW |
252 | tests-internal += \ |
253 | tst-rseq \ | |
254 | tst-sigcontext-get_pc \ | |
255 | # tests-internal | |
a43565ac | 256 | |
e3e58982 FW |
257 | tests-internal += \ |
258 | tst-rseq-disable \ | |
33237fe8 | 259 | # tests-internal |
e3e58982 | 260 | |
088d3291 AZ |
261 | tests-time64 += \ |
262 | tst-adjtimex-time64 \ | |
263 | tst-clock_adjtime-time64 \ | |
5f3a7ebc | 264 | tst-epoll-time64 \ |
088d3291 AZ |
265 | tst-ntp_adjtime-time64 \ |
266 | tst-ntp_gettime-time64 \ | |
267 | tst-ntp_gettimex-time64 \ | |
268 | tst-ppoll-time64 \ | |
b39ffab8 | 269 | tst-prctl-time64 \ |
8b2c706a | 270 | tst-scm_rights-time64 \ |
dccee96e CD |
271 | tst-sigtimedwait-time64 \ |
272 | tst-timerfd-time64 \ | |
b39ffab8 | 273 | # tests-time64 |
088d3291 | 274 | |
84d40d70 L |
275 | tests-clone-internal = \ |
276 | tst-align-clone-internal \ | |
277 | tst-clone2-internal \ | |
278 | tst-clone3-internal \ | |
2053c113 | 279 | tst-getpid1-internal |
dccee96e | 280 | # tests-clone-internal |
320768a6 AZ |
281 | tests-internal += \ |
282 | $(tests-clone-internal) \ | |
283 | # tests-internal | |
284 | tests-static += \ | |
285 | $(tests-clone-internal) \ | |
286 | # tests-static | |
84d40d70 | 287 | |
bacd3227 | 288 | CFLAGS-tst-sigcontext-get_pc.c = -fasynchronous-unwind-tables |
06ab719d | 289 | |
2dba5ce7 FW |
290 | # Generate the list of SYS_* macros for the system calls (__NR_* |
291 | # macros). The file syscall-names.list contains all possible system | |
292 | # call names, and the generated header file produces SYS_* macros for | |
293 | # the __NR_* macros which are actually defined. | |
294 | ||
295 | generated += bits/syscall.h | |
296 | $(objpfx)bits/syscall.h: \ | |
297 | ../sysdeps/unix/sysv/linux/gen-syscall-h.awk \ | |
298 | ../sysdeps/unix/sysv/linux/syscall-names.list | |
362f5ae2 | 299 | $(make-target-directory) |
2dba5ce7 FW |
300 | LC_ALL=C $(AWK) -f $^ > $@-tmp |
301 | $(move-if-change) $@-tmp $@ | |
302 | before-compile += $(objpfx)bits/syscall.h | |
cd6ede75 | 303 | |
2dba5ce7 FW |
304 | # All macros defined by <sys/syscall.h>. Include <bits/syscall.h> |
305 | # explicitly because <sys/sycall.h> skips it if _LIBC is defined. | |
306 | $(objpfx)tst-syscall-list-macros.list: \ | |
307 | $(objpfx)bits/syscall.h ../sysdeps/unix/sysv/linux/sys/syscall.h | |
308 | printf '#include <linux/version.h>\n\ | |
309 | #include <sys/syscall.h>\n#include <bits/syscall.h>\n' | \ | |
310 | $(CC) -E -o $@-tmp $(CFLAGS) $(CPPFLAGS) -x c - -dM | |
311 | $(move-if-change) $@-tmp $@ | |
312 | ||
313 | # __NR_* system call names. Used by the test below. | |
314 | $(objpfx)tst-syscall-list-nr.list: \ | |
315 | ../sysdeps/unix/sysv/linux/filter-nr-syscalls.awk \ | |
316 | $(objpfx)tst-syscall-list-macros.list | |
317 | LC_ALL=C $(AWK) -f $^ > $@-tmp | |
318 | $(move-if-change) $@-tmp $@ | |
319 | ||
320 | # SYS_* system call names. Used by the test below. | |
321 | $(objpfx)tst-syscall-list-sys.list: $(objpfx)tst-syscall-list-macros.list | |
322 | LC_ALL=C $(AWK) '/^#define SYS_/ { print substr($$2, 5) }' $< > $@-tmp | |
323 | $(move-if-change) $@-tmp $@ | |
324 | ||
320768a6 AZ |
325 | tests-special += \ |
326 | $(objpfx)tst-syscall-list.out | |
327 | # tests-special | |
2dba5ce7 FW |
328 | $(objpfx)tst-syscall-list.out: \ |
329 | ../sysdeps/unix/sysv/linux/tst-syscall-list.sh \ | |
330 | $(objpfx)tst-syscall-list-macros.list \ | |
331 | $(objpfx)tst-syscall-list-nr.list \ | |
332 | $(objpfx)tst-syscall-list-sys.list | |
333 | $(BASH) $^ $(AWK) > $@; $(evaluate-test) | |
334 | ||
320768a6 AZ |
335 | tests-special += \ |
336 | $(objpfx)tst-glibcsyscalls.out | |
337 | # tests-special | |
4cf0d223 FW |
338 | # arch-syscall.h is located via the sysdeps override search path. |
339 | $(objpfx)tst-glibcsyscalls.out: arch-syscall.h \ | |
340 | ../sysdeps/unix/sysv/linux/syscall-names.list | |
341 | $(sysdeps-linux-python) \ | |
342 | ../sysdeps/unix/sysv/linux/tst-glibcsyscalls.py \ | |
343 | $(sysdeps-linux-python-cc) $< \ | |
344 | ../sysdeps/unix/sysv/linux/syscall-names.list \ | |
345 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
346 | $(objpfx)tst-glibcsyscalls.out: \ | |
347 | ../sysdeps/unix/sysv/linux/tst-glibcsyscalls.py \ | |
348 | $(sysdeps-linux-python-deps) | |
349 | ||
63b4baa4 FW |
350 | # Separate object file for access to the constant from the UAPI header. |
351 | $(objpfx)tst-sysconf-iov_max: $(objpfx)tst-sysconf-iov_max-uapi.o | |
352 | ||
320768a6 AZ |
353 | tests-special += \ |
354 | $(objpfx)tst-mman-consts.out \ | |
355 | # tests-special | |
df648905 | 356 | $(objpfx)tst-mman-consts.out: ../sysdeps/unix/sysv/linux/tst-mman-consts.py |
4cf0d223 FW |
357 | $(sysdeps-linux-python) \ |
358 | ../sysdeps/unix/sysv/linux/tst-mman-consts.py \ | |
359 | $(sysdeps-linux-python-cc) \ | |
360 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
361 | $(objpfx)tst-mman-consts.out: $(sysdeps-linux-python-deps) | |
df648905 | 362 | |
320768a6 AZ |
363 | tests-special += \ |
364 | $(objpfx)tst-pidfd-consts.out \ | |
365 | # tests-special | |
97f5d19c AZ |
366 | $(objpfx)tst-pidfd-consts.out: ../sysdeps/unix/sysv/linux/tst-pidfd-consts.py |
367 | $(sysdeps-linux-python) \ | |
368 | ../sysdeps/unix/sysv/linux/tst-pidfd-consts.py \ | |
369 | $(sysdeps-linux-python-cc) \ | |
370 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
371 | $(objpfx)tst-pidfd-consts.out: $(sysdeps-linux-python-deps) | |
372 | ||
320768a6 AZ |
373 | tests-special += \ |
374 | $(objpfx)tst-mount-consts.out \ | |
375 | # tests-special | |
6c0eedd9 AZ |
376 | $(objpfx)tst-mount-consts.out: ../sysdeps/unix/sysv/linux/tst-mount-consts.py |
377 | $(sysdeps-linux-python) \ | |
378 | ../sysdeps/unix/sysv/linux/tst-mount-consts.py \ | |
379 | $(sysdeps-linux-python-cc) \ | |
380 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
381 | $(objpfx)tst-mount-consts.out: $(sysdeps-linux-python-deps) | |
382 | ||
320768a6 AZ |
383 | tests-special += \ |
384 | $(objpfx)tst-mount-compile.out \ | |
385 | # tests-special | |
774058d7 AZ |
386 | $(objpfx)tst-mount-compile.out: ../sysdeps/unix/sysv/linux/tst-mount-compile.py |
387 | $(sysdeps-linux-python) \ | |
388 | ../sysdeps/unix/sysv/linux/tst-mount-compile.py \ | |
389 | $(sysdeps-linux-python-cc) \ | |
390 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
391 | $(objpfx)tst-mount-compile.out: $(sysdeps-linux-python-deps) | |
392 | ||
e3e58982 FW |
393 | tst-rseq-disable-ENV = GLIBC_TUNABLES=glibc.pthread.rseq=0 |
394 | ||
2dba5ce7 | 395 | endif # $(subdir) == misc |
d2f5be2a | 396 | |
8d57beea | 397 | ifeq ($(subdir),time) |
320768a6 AZ |
398 | sysdep_headers += \ |
399 | bits/timex.h \ | |
400 | sys/timex.h \ | |
401 | # sysdep_headers | |
997d6467 | 402 | |
320768a6 AZ |
403 | sysdep_routines += \ |
404 | ntp_gettime \ | |
405 | ntp_gettimex \ | |
406 | # sysdep_routines | |
72e84d1d AZ |
407 | |
408 | tests += \ | |
409 | tst-clock_gettime-clobber \ | |
410 | tst-gettimeofday-clobber \ | |
411 | tst-time-clobber \ | |
412 | # tests | |
d2f5be2a UD |
413 | endif |
414 | ||
8082d91e | 415 | ifeq ($(subdir),signal) |
320768a6 AZ |
416 | tests-special += \ |
417 | $(objpfx)tst-signal-numbers.out \ | |
418 | # tests-special | |
419 | ||
8082d91e ZW |
420 | # Depending on signal.o* is a hack. What we actually want is a dependency |
421 | # on signal.h and everything it includes. That's impractical to write | |
422 | # in this context, but signal.c includes signal.h and not much else so it'll | |
423 | # be conservatively correct. | |
424 | $(objpfx)tst-signal-numbers.out: \ | |
a8110b72 | 425 | ../sysdeps/unix/sysv/linux/tst-signal-numbers.py \ |
8082d91e | 426 | $(objpfx)signal.o* |
4cf0d223 FW |
427 | $(sysdeps-linux-python) \ |
428 | ../sysdeps/unix/sysv/linux/tst-signal-numbers.py \ | |
429 | $(sysdeps-linux-python-cc) \ | |
430 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
431 | $(objpfx)tst-signal-numbers.out: $(sysdeps-linux-python-deps) | |
8082d91e ZW |
432 | endif |
433 | ||
8d57beea | 434 | ifeq ($(subdir),socket) |
320768a6 AZ |
435 | sysdep_headers += \ |
436 | bits/socket-constants.h \ | |
437 | net/ethernet.h \ | |
438 | net/if_arp.h \ | |
439 | net/if_packet.h \ | |
440 | net/if_ppp.h \ | |
441 | net/if_shaper.h \ | |
442 | net/if_slip.h \ | |
443 | net/ppp-comp.h \ | |
444 | net/ppp_defs.h \ | |
445 | net/route.h \ | |
446 | # sysdep_headers | |
447 | ||
448 | sysdep_routines += \ | |
449 | cmsg_nxthdr \ | |
450 | # sysdep_routines | |
451 | ||
78880cc1 AZ |
452 | CFLAGS-recvmmsg.c = -fexceptions -fasynchronous-unwind-tables |
453 | CFLAGS-sendmmsg.c = -fexceptions -fasynchronous-unwind-tables | |
7854ebf8 | 454 | |
948ce73b AZ |
455 | tests += \ |
456 | tst-socket-timestamp \ | |
457 | tst-socket-timestamp-compat \ | |
458 | # tests | |
459 | tests-time64 += \ | |
dccee96e | 460 | tst-socket-timestamp-compat-time64 \ |
948ce73b | 461 | tst-socket-timestamp-time64 \ |
948ce73b | 462 | # tests-time64 |
8fba6724 | 463 | |
320768a6 AZ |
464 | tests-special += \ |
465 | $(objpfx)tst-socket-consts.out \ | |
466 | # tests-special | |
7854ebf8 FW |
467 | $(objpfx)tst-socket-consts.out: ../sysdeps/unix/sysv/linux/tst-socket-consts.py |
468 | PYTHONPATH=../scripts \ | |
469 | $(PYTHON) ../sysdeps/unix/sysv/linux/tst-socket-consts.py \ | |
470 | --cc="$(CC) $(patsubst -DMODULE_NAME=%, \ | |
471 | -DMODULE_NAME=testsuite, \ | |
472 | $(CPPFLAGS)) -D_ISOMAC" \ | |
473 | < /dev/null > $@ 2>&1; $(evaluate-test) | |
474 | endif # $(subdir) == socket | |
8f5ca04b | 475 | |
8d57beea | 476 | ifeq ($(subdir),sunrpc) |
320768a6 AZ |
477 | sysdep_headers += \ |
478 | nfs/nfs.h \ | |
479 | # sysdep_headers | |
57aefafe RM |
480 | endif |
481 | ||
8d57beea | 482 | ifeq ($(subdir),termios) |
320768a6 AZ |
483 | sysdep_headers += \ |
484 | termio.h \ | |
485 | # sysdep_headers | |
80791291 RM |
486 | endif |
487 | ||
d64fae6a | 488 | ifeq ($(subdir),posix) |
320768a6 AZ |
489 | sysdep_headers += \ |
490 | bits/initspin.h \ | |
491 | # sysdep_headers | |
7ae4abe9 | 492 | |
320768a6 AZ |
493 | sysdep_routines += \ |
494 | getcpu \ | |
495 | oldglob \ | |
0d6f9f62 AZN |
496 | pidfd_spawn \ |
497 | pidfd_spawnp \ | |
320768a6 | 498 | sched_getcpu \ |
ce2bfb85 AZN |
499 | spawnattr_getcgroup_np \ |
500 | spawnattr_setcgroup_np \ | |
320768a6 | 501 | # sysdep_routines |
341c566f | 502 | |
320768a6 AZ |
503 | tests += \ |
504 | tst-affinity \ | |
505 | tst-affinity-pid \ | |
0d6f9f62 | 506 | tst-posix_spawn-setsid-pidfd \ |
ce2bfb85 | 507 | tst-spawn-cgroup \ |
0d6f9f62 AZN |
508 | tst-spawn-chdir-pidfd \ |
509 | tst-spawn-pidfd \ | |
510 | tst-spawn2-pidfd \ | |
511 | tst-spawn3-pidfd \ | |
512 | tst-spawn4-pidfd \ | |
513 | tst-spawn5-pidfd \ | |
514 | tst-spawn6-pidfd \ | |
515 | tst-spawn7-pidfd \ | |
320768a6 AZ |
516 | # tests |
517 | ||
518 | tests-static += \ | |
519 | tst-affinity-static \ | |
520 | # tests-static | |
08192659 | 521 | |
320768a6 AZ |
522 | tests += \ |
523 | $(tests-static) \ | |
524 | # tests | |
1e8bdc3a | 525 | |
08192659 RM |
526 | CFLAGS-fork.c = $(libio-mtsafe) |
527 | CFLAGS-getpid.o = -fomit-frame-pointer | |
528 | CFLAGS-getpid.os = -fomit-frame-pointer | |
0d6f9f62 | 529 | CFLAGS-tst-spawn3-pidfd.c += -DOBJPFX=\"$(objpfx)\" |
ce2bfb85 AZN |
530 | |
531 | tst-spawn-cgroup-ARGS = -- $(host-test-program-cmd) | |
0d6f9f62 AZN |
532 | tst-spawn-pidfd-ARGS = -- $(host-test-program-cmd) |
533 | tst-spawn5-pidfd-ARGS = -- $(host-test-program-cmd) | |
534 | tst-spawn6-pidfd-ARGS = -- $(host-test-program-cmd) | |
535 | tst-spawn7-pidfd-ARGS = -- $(host-test-program-cmd) | |
536 | tst-posix_spawn-setsid-pidfd-ARGS = -- $(host-test-program-cmd) | |
d64fae6a UD |
537 | endif |
538 | ||
8d57beea | 539 | ifeq ($(subdir),inet) |
320768a6 AZ |
540 | sysdep_headers += \ |
541 | netash/ash.h \ | |
542 | netatalk/at.h \ | |
543 | netax25/ax25.h \ | |
544 | neteconet/ec.h \ | |
545 | netinet/if_fddi.h \ | |
546 | netinet/if_tr.h \ | |
547 | netipx/ipx.h \ | |
548 | netiucv/iucv.h \ | |
549 | netpacket/packet.h \ | |
550 | netrom/netrom.h \ | |
551 | netrose/rose.h \ | |
552 | # sysdep_headers | |
553 | ||
554 | sysdep_routines += \ | |
555 | netlink_assert_response \ | |
556 | # sysdep_routines | |
a443bd3f L |
557 | |
558 | CFLAGS-check_pf.c += -fexceptions | |
a401eea9 UD |
559 | endif |
560 | ||
93995795 RM |
561 | # Don't compile the ctype glue code, since there is no old non-GNU C library. |
562 | inhibit-glue = yes | |
d705269e | 563 | |
9756dfe1 | 564 | ifeq ($(subdir),dirent) |
320768a6 AZ |
565 | sysdep_routines += \ |
566 | getdirentries \ | |
567 | getdirentries64 \ | |
568 | # sysdep_routines | |
569 | ||
0c560598 FW |
570 | tests += \ |
571 | tst-getdents64 \ | |
572 | tst-readdir64-compat \ | |
573 | # tests | |
15e50e6c | 574 | endif # $(subdir) == dirent |
9756dfe1 | 575 | |
9931ba24 UD |
576 | ifeq ($(subdir),nis) |
577 | CFLAGS-ypclnt.c = -DUSE_BINDINGDIR=1 | |
578 | endif | |
913a752b | 579 | |
9c7ff11a | 580 | ifeq ($(subdir),io) |
320768a6 AZ |
581 | sysdep_routines += \ |
582 | close_nocancel \ | |
583 | fallocate \ | |
584 | fallocate64 \ | |
585 | fcntl_nocancel \ | |
586 | internal_statvfs \ | |
587 | open64_nocancel \ | |
588 | open_nocancel \ | |
589 | openat64_nocancel \ | |
590 | openat_nocancel \ | |
591 | pread64_nocancel \ | |
592 | read_nocancel \ | |
593 | stat_t64_cp \ | |
594 | statx_cp \ | |
595 | sync_file_range \ | |
596 | write_nocancel \ | |
597 | xstatconv \ | |
598 | # sysdep_routines | |
329ea513 | 599 | |
320768a6 AZ |
600 | sysdep_headers += \ |
601 | bits/fcntl-linux.h \ | |
602 | # sysdep_headers | |
a9bfffe5 | 603 | |
23e0e8f5 SP |
604 | tests += \ |
605 | tst-fallocate \ | |
606 | tst-fallocate64 \ | |
607 | tst-getcwd-smallbuff \ | |
608 | tst-o_path-locks \ | |
320768a6 | 609 | # tests |
9c7ff11a UD |
610 | endif |
611 | ||
913a752b | 612 | ifeq ($(subdir),elf) |
320768a6 AZ |
613 | sysdep-rtld-routines += \ |
614 | dl-brk \ | |
615 | dl-getcwd \ | |
616 | dl-openat64 \ | |
617 | dl-opendir \ | |
618 | dl-sbrk \ | |
619 | # sysdep-rtld-routines | |
620 | ||
621 | others += \ | |
622 | pldd \ | |
623 | # others | |
624 | ||
625 | install-bin += \ | |
626 | pldd \ | |
627 | # install-bin | |
3ba06713 | 628 | |
fe658845 | 629 | $(objpfx)pldd: $(objpfx)xmalloc.o |
913a752b | 630 | endif |
1fe42a2b UD |
631 | |
632 | ifeq ($(subdir),rt) | |
633 | CFLAGS-mq_send.c += -fexceptions | |
634 | CFLAGS-mq_receive.c += -fexceptions | |
635 | endif | |
fc03df7a UD |
636 | |
637 | ifeq ($(subdir),nscd) | |
8c78faa9 | 638 | sysdep-CFLAGS += -DHAVE_EPOLL -DHAVE_INOTIFY -DHAVE_NETLINK |
e14bbf53 | 639 | CFLAGS-gai.c += -DNEED_NETLINK |
fc03df7a | 640 | endif |
08192659 RM |
641 | |
642 | ifeq ($(subdir),nptl) | |
320768a6 AZ |
643 | tests += \ |
644 | tst-align-clone \ | |
645 | tst-getpid1 \ | |
646 | # tests | |
95e114a0 FW |
647 | |
648 | # tst-rseq-nptl is an internal test because it requires a definition of | |
649 | # __NR_rseq from the internal system call list. | |
320768a6 AZ |
650 | tests-internal += \ |
651 | tst-rseq-nptl \ | |
652 | # tests-internal | |
08192659 | 653 | endif |