From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59FF56EDBA for ; Wed, 6 Oct 2021 16:20:13 +0000 (UTC) From: Rodrigo Vivi Date: Wed, 6 Oct 2021 12:14:43 -0400 Message-Id: <20211006161444.904476-8-rodrigo.vivi@intel.com> In-Reply-To: <20211006161444.904476-1-rodrigo.vivi@intel.com> References: <20211006161444.904476-1-rodrigo.vivi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 7/8] include: Introduce linux-uapi for non-drm-uapi files. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Rodrigo Vivi , Petri Latvala List-ID: 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 Signed-off-by: Rodrigo Vivi --- 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= headers_install $ rm -f /include/drm-uapi/* - $ cp /include/linux/sync_file.h /include/drm-uapi/ $ cp /include/drm/* /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= headers_install + $ cp /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