From 25d2f85bf57fb0a56eeb60d00465b99f069f4376 Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi <rodrigo.vivi@intel.com> Date: Wed, 6 Oct 2021 10:54:51 -0400 Subject: [PATCH] include: Introduce linux-uapi for non-drm-uapi files. 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@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Petri Latvala <petri.latvala@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 d71a2fa76..62bef46d6 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 06e76189b..f9a284d84 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') -- GitLab