[igt-dev] [PATCH i-g-t 1/2] build: provide include for missing syscalls

Lucas De Marchi lucas.demarchi at intel.com
Thu Jul 19 20:54:44 UTC 2018


Add directory with README file to allow missing syscalls to be defined.
The syscalls themselves will be provided in follow up patches.

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
 lib/stubs/syscall/README | 6 ++++++
 meson.build              | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 lib/stubs/syscall/README

diff --git a/lib/stubs/syscall/README b/lib/stubs/syscall/README
new file mode 100644
index 00000000..f05b9a6f
--- /dev/null
+++ b/lib/stubs/syscall/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/meson.build b/meson.build
index 5a931565..c24a3cf4 100644
--- a/meson.build
+++ b/meson.build
@@ -64,7 +64,7 @@ _tests_required = build_tests == 'true'
 
 build_info = []
 
-inc = include_directories('include/drm-uapi', 'lib', '.')
+inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscall', '.')
 
 inc_for_gtkdoc = include_directories('lib')
 
-- 
2.17.1



More information about the igt-dev mailing list