[igt-dev] [PATCH i-g-t 7/8] include: Introduce linux-uapi for non-drm-uapi files.
Rodrigo Vivi
rodrigo.vivi at intel.com
Wed Oct 6 16:14:43 UTC 2021
sync_file.h is needed for dma-buf, but it is part of the
linux-uapi include dir.
The patch aims to have a drm-uapi directory that is a pure
copy of the generated drm-uapi include dir.
Cc: Petri Latvala <petri.latvala at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
README.md | 12 +++++++++++-
include/{drm-uapi => linux-uapi}/sync_file.h | 0
meson.build | 2 +-
3 files changed, 12 insertions(+), 2 deletions(-)
rename include/{drm-uapi => linux-uapi}/sync_file.h (100%)
diff --git a/README.md b/README.md
index d71a2fa7..62bef46d 100644
--- a/README.md
+++ b/README.md
@@ -154,8 +154,18 @@ These should be updated all together by:
# From the kernel dir with a drm/drm-next commit checked out:
$ make INSTALL_HDR_PATH=<dest-dir> headers_install
$ rm -f <igt-dir>/include/drm-uapi/*
- $ cp <dest-dir>/include/linux/sync_file.h <igt-dir>/include/drm-uapi/
$ cp <dest-dir>/include/drm/* <igt-dir>/include/drm-uapi/
Then, commit with a note of which exact commit from airlied's branch
was used to generate them.
+
+### `include/linux-uapi/sync_file.h`
+
+Imported non-DRM uapi headers from airlied's drm-next branch.
+
+ # From the kernel dir with a drm/drm-next commit checked out:
+ $ make INSTALL_HDR_PATH=<destdir> headers_install
+ $ cp <destdir>/include/linux/sync_file.h ~/igt/include/linux-uapi/
+
+Then, commit with a note of which exact commit from airlied's branch
+was used to generate them.
diff --git a/include/drm-uapi/sync_file.h b/include/linux-uapi/sync_file.h
similarity index 100%
rename from include/drm-uapi/sync_file.h
rename to include/linux-uapi/sync_file.h
diff --git a/meson.build b/meson.build
index 06e76189..f9a284d8 100644
--- a/meson.build
+++ b/meson.build
@@ -86,7 +86,7 @@ with_libdrm = get_option('libdrm_drivers')
build_info = ['Build type: ' + get_option('buildtype')]
-inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscalls', '.')
+inc = include_directories('include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.')
inc_for_gtkdoc = include_directories('lib')
--
2.31.1
More information about the igt-dev
mailing list