From 31ea7dd5e66d8ff3acf093de79a2890a2cbec045 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 24 Jul 2018 15:20:23 -0700 Subject: build: provide include for missing syscalls Add directory with README file to allow missing syscalls to be defined. The syscalls themselves will be provided in follow up patches. v2: add support to autotools Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi Acked-by: Antonio Argenziano Signed-off-by: Rodrigo Vivi --- lib/Makefile.am | 3 ++- lib/stubs/syscalls/README | 6 ++++++ lib/tests/Makefile.am | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 lib/stubs/syscalls/README (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index ab9eefe6..6251bdb8 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -52,7 +52,8 @@ endif AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/stubs/syscalls AM_CFLAGS = \ $(CWARNFLAGS) \ diff --git a/lib/stubs/syscalls/README b/lib/stubs/syscalls/README new file mode 100644 index 00000000..f05b9a6f --- /dev/null +++ b/lib/stubs/syscalls/README @@ -0,0 +1,6 @@ +This directory contains stub implementations for syscalls missing from libc. +This provides a way to build IGT on an old system, but it will not run +correctly if the kernel is missing the functionality provided. In order to +add a new definition, follow the same directory hierarchy as the standard +location in which the header is defined so we don't have to clutter the +codebase to support old systems. diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am index fb433d69..ad585b77 100644 --- a/lib/tests/Makefile.am +++ b/lib/tests/Makefile.am @@ -11,6 +11,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/include/drm-uapi \ -I$(srcdir)/../.. \ -I$(srcdir)/.. \ + -I$(top_srcdir)/lib/stubs/syscalls \ -include "$(srcdir)/../../lib/check-ndebug.h" \ -DIGT_DATADIR=\""$(abs_srcdir)"\" \ -D_GNU_SOURCE -- cgit v1.2.3