|
Packit |
6c4009 |
ifeq ($(subdir),csu)
|
|
Packit |
6c4009 |
sysdep_routines += errno-loc
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),assert)
|
|
Packit |
6c4009 |
CFLAGS-assert.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
|
|
Packit |
6c4009 |
CFLAGS-assert-perr.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),malloc)
|
|
Packit |
6c4009 |
CFLAGS-malloc.c += -DMORECORE_CLEARS=2
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),misc)
|
|
Packit |
6c4009 |
include $(firstword $(wildcard $(sysdirs:=/sysctl.mk)))
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
sysdep_routines += clone umount umount2 readahead \
|
|
Packit |
6c4009 |
setfsuid setfsgid epoll_pwait signalfd \
|
|
Packit |
6c4009 |
eventfd eventfd_read eventfd_write prlimit \
|
|
Packit |
6c4009 |
personality epoll_wait tee vmsplice splice \
|
|
Packit |
6c4009 |
open_by_handle_at mlock2 pkey_mprotect pkey_set pkey_get
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
CFLAGS-gethostid.c = -fexceptions
|
|
Packit |
6c4009 |
CFLAGS-tee.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-vmsplice.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-splice.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-open_by_handle_at.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-sync_file_range.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-tst-writev.c += "-DARTIFICIAL_LIMIT=(0x80000000-sysconf(_SC_PAGESIZE))"
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h \
|
|
Packit |
6c4009 |
sys/klog.h \
|
|
Packit |
6c4009 |
sys/user.h sys/prctl.h \
|
|
Packit |
6c4009 |
sys/kd.h sys/soundcard.h sys/vt.h \
|
|
Packit |
6c4009 |
sys/quota.h sys/fsuid.h \
|
|
Packit |
6c4009 |
scsi/sg.h scsi/scsi.h scsi/scsi_ioctl.h sys/pci.h \
|
|
Packit |
6c4009 |
sys/raw.h sys/personality.h sys/epoll.h \
|
|
Packit |
6c4009 |
bits/a.out.h sys/inotify.h sys/signalfd.h sys/eventfd.h \
|
|
Packit |
6c4009 |
sys/timerfd.h sys/fanotify.h bits/eventfd.h bits/inotify.h \
|
|
Packit |
6c4009 |
bits/signalfd.h bits/timerfd.h bits/epoll.h \
|
|
Packit |
6c4009 |
bits/socket_type.h bits/syscall.h bits/sysctl.h \
|
|
Packit |
6c4009 |
bits/mman-linux.h bits/mman-shared.h bits/ptrace-shared.h \
|
|
Packit |
6c4009 |
bits/siginfo-arch.h bits/siginfo-consts-arch.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \
|
|
Packit |
6c4009 |
tst-quota tst-sync_file_range tst-sysconf-iov_max tst-ttyname \
|
|
Packit |
6c4009 |
test-errno-linux tst-memfd_create tst-mlock2 tst-pkey \
|
|
Packit |
6c4009 |
tst-rlimit-infinity tst-ofdlocks
|
|
Packit |
6c4009 |
tests-internal += tst-ofdlocks-compat
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Generate the list of SYS_* macros for the system calls (__NR_*
|
|
Packit |
6c4009 |
# macros). The file syscall-names.list contains all possible system
|
|
Packit |
6c4009 |
# call names, and the generated header file produces SYS_* macros for
|
|
Packit |
6c4009 |
# the __NR_* macros which are actually defined.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
generated += bits/syscall.h
|
|
Packit |
6c4009 |
$(objpfx)bits/syscall.h: \
|
|
Packit |
6c4009 |
../sysdeps/unix/sysv/linux/gen-syscall-h.awk \
|
|
Packit |
6c4009 |
../sysdeps/unix/sysv/linux/syscall-names.list
|
|
Packit |
6c4009 |
$(make-target-directory)
|
|
Packit |
6c4009 |
LC_ALL=C $(AWK) -f $^ > $@-tmp
|
|
Packit |
6c4009 |
$(move-if-change) $@-tmp $@
|
|
Packit |
6c4009 |
before-compile += $(objpfx)bits/syscall.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# All macros defined by <sys/syscall.h>. Include <bits/syscall.h>
|
|
Packit |
6c4009 |
# explicitly because <sys/sycall.h> skips it if _LIBC is defined.
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-macros.list: \
|
|
Packit |
6c4009 |
$(objpfx)bits/syscall.h ../sysdeps/unix/sysv/linux/sys/syscall.h
|
|
Packit |
6c4009 |
printf '#include <linux/version.h>\n\
|
|
Packit |
6c4009 |
#include <sys/syscall.h>\n#include <bits/syscall.h>\n' | \
|
|
Packit |
6c4009 |
$(CC) -E -o $@-tmp $(CFLAGS) $(CPPFLAGS) -x c - -dM
|
|
Packit |
6c4009 |
$(move-if-change) $@-tmp $@
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# __NR_* system call names. Used by the test below.
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-nr.list: \
|
|
Packit |
6c4009 |
../sysdeps/unix/sysv/linux/filter-nr-syscalls.awk \
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-macros.list
|
|
Packit |
6c4009 |
LC_ALL=C $(AWK) -f $^ > $@-tmp
|
|
Packit |
6c4009 |
$(move-if-change) $@-tmp $@
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# SYS_* system call names. Used by the test below.
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-sys.list: $(objpfx)tst-syscall-list-macros.list
|
|
Packit |
6c4009 |
LC_ALL=C $(AWK) '/^#define SYS_/ { print substr($$2, 5) }' $< > $@-tmp
|
|
Packit |
6c4009 |
$(move-if-change) $@-tmp $@
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests-special += $(objpfx)tst-syscall-list.out
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list.out: \
|
|
Packit |
6c4009 |
../sysdeps/unix/sysv/linux/tst-syscall-list.sh \
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-macros.list \
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-nr.list \
|
|
Packit |
6c4009 |
$(objpfx)tst-syscall-list-sys.list
|
|
Packit |
6c4009 |
$(BASH) $^ $(AWK) > $@; $(evaluate-test)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Separate object file for access to the constant from the UAPI header.
|
|
Packit |
6c4009 |
$(objpfx)tst-sysconf-iov_max: $(objpfx)tst-sysconf-iov_max-uapi.o
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
$(objpfx)tst-pkey: $(shared-thread-library)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
endif # $(subdir) == misc
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),time)
|
|
Packit |
6c4009 |
sysdep_headers += sys/timex.h bits/timex.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
sysdep_routines += ntp_gettime ntp_gettimex
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),signal)
|
|
Packit |
6c4009 |
tests-special += $(objpfx)tst-signal-numbers.out
|
|
Packit |
6c4009 |
# Depending on signal.o* is a hack. What we actually want is a dependency
|
|
Packit |
6c4009 |
# on signal.h and everything it includes. That's impractical to write
|
|
Packit |
6c4009 |
# in this context, but signal.c includes signal.h and not much else so it'll
|
|
Packit |
6c4009 |
# be conservatively correct.
|
|
Packit |
6c4009 |
$(objpfx)tst-signal-numbers.out: \
|
|
Packit |
6c4009 |
../sysdeps/unix/sysv/linux/tst-signal-numbers.sh \
|
|
Packit |
6c4009 |
$(objpfx)signal.o*
|
|
Packit |
6c4009 |
AWK=$(AWK) $(SHELL) ../sysdeps/unix/sysv/linux/tst-signal-numbers.sh \
|
|
Packit |
6c4009 |
$(CC) $(patsubst -DMODULE_NAME=%,-DMODULE_NAME=testsuite,$(CPPFLAGS)) \
|
|
Packit |
6c4009 |
< /dev/null > $@; $(evaluate-test)
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),socket)
|
|
Packit |
6c4009 |
sysdep_headers += net/if_ppp.h net/ppp-comp.h \
|
|
Packit |
6c4009 |
net/ppp_defs.h net/if_arp.h net/route.h net/ethernet.h \
|
|
Packit |
6c4009 |
net/if_slip.h net/if_packet.h net/if_shaper.h
|
|
Packit |
6c4009 |
sysdep_routines += cmsg_nxthdr
|
|
Packit |
6c4009 |
CFLAGS-recvmmsg.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
CFLAGS-sendmmsg.c = -fexceptions -fasynchronous-unwind-tables
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),sunrpc)
|
|
Packit |
6c4009 |
sysdep_headers += nfs/nfs.h
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),termios)
|
|
Packit |
6c4009 |
sysdep_headers += termio.h
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),posix)
|
|
Packit |
6c4009 |
sysdep_headers += bits/initspin.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
sysdep_routines += sched_getcpu oldglob
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests += tst-affinity tst-affinity-pid
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
CFLAGS-fork.c = $(libio-mtsafe)
|
|
Packit |
6c4009 |
CFLAGS-getpid.o = -fomit-frame-pointer
|
|
Packit |
6c4009 |
CFLAGS-getpid.os = -fomit-frame-pointer
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),inet)
|
|
Packit |
6c4009 |
sysdep_headers += netinet/if_fddi.h netinet/if_tr.h \
|
|
Packit |
6c4009 |
netipx/ipx.h netash/ash.h netax25/ax25.h netatalk/at.h \
|
|
Packit |
6c4009 |
netrom/netrom.h netpacket/packet.h netrose/rose.h \
|
|
Packit |
6c4009 |
neteconet/ec.h netiucv/iucv.h
|
|
Packit |
6c4009 |
sysdep_routines += netlink_assert_response
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Don't compile the ctype glue code, since there is no old non-GNU C library.
|
|
Packit |
6c4009 |
inhibit-glue = yes
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),dirent)
|
|
Packit |
6c4009 |
sysdep_routines += getdirentries getdirentries64
|
|
Packit Service |
36dffd |
tests-internal += tst-readdir64-compat
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),nis)
|
|
Packit |
6c4009 |
CFLAGS-ypclnt.c = -DUSE_BINDINGDIR=1
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),io)
|
|
Packit |
6c4009 |
sysdep_routines += xstatconv internal_statvfs internal_statvfs64 \
|
|
Packit |
6c4009 |
sync_file_range fallocate fallocate64 \
|
|
Packit |
6c4009 |
close_nocancel fcntl_nocancel nanosleep_nocancel \
|
|
Packit |
6c4009 |
open_nocancel open64_nocancel \
|
|
Packit |
6c4009 |
openat_nocancel openat64_nocancel \
|
|
Packit Service |
8bbac7 |
pause_nocancel read_nocancel waitpid_nocancel write_nocancel
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
sysdep_headers += bits/fcntl-linux.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests += tst-fallocate tst-fallocate64
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
sysdep-rtld-routines += dl-brk dl-sbrk dl-getcwd dl-openat64 dl-opendir \
|
|
Packit |
6c4009 |
dl-fxstatat64
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
libof-lddlibc4 = lddlibc4
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
others += pldd
|
|
Packit |
6c4009 |
install-bin += pldd
|
|
Packit |
6c4009 |
$(objpfx)pldd: $(objpfx)xmalloc.o
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),rt)
|
|
Packit |
6c4009 |
CFLAGS-mq_send.c += -fexceptions
|
|
Packit |
6c4009 |
CFLAGS-mq_receive.c += -fexceptions
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),nscd)
|
|
Packit |
6c4009 |
sysdep-CFLAGS += -DHAVE_EPOLL -DHAVE_INOTIFY -DHAVE_NETLINK
|
|
Packit |
6c4009 |
CFLAGS-gai.c += -DNEED_NETLINK
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),nptl)
|
|
Packit |
6c4009 |
tests += tst-align-clone tst-getpid1 \
|
|
Packit |
6c4009 |
tst-thread-affinity-pthread tst-thread-affinity-pthread2 \
|
|
Packit |
6c4009 |
tst-thread-affinity-sched
|
|
Packit |
6c4009 |
tests-internal += tst-setgetname
|
|
Packit |
6c4009 |
endif
|