[igt-dev] [PATCH i-g-t 6/8] README.md: Detail the drm-uapi headers sync.

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Oct 6 16:14:42 UTC 2021


Let's detail a bit more on how to properly get the headers
properly in a cleaner way. This might help to avoid small
mistakes when syncing uapi headers.

Cc: Petri Latvala <petri.latvala at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 README.md | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 6d9e40f3..d71a2fa7 100644
--- a/README.md
+++ b/README.md
@@ -149,7 +149,13 @@ overall structure or indexes you need to reflect the change in
 
 Imported DRM uapi headers from airlied's drm-next branch.
 
-These should be updated all together by executing `make headers_install` from
-that branch of the kernel and then copying the resulting
-`./usr/include/drm/*.h` in and committing with a note of which exact commit
-from airlied's branch was used to generate them.
+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.
-- 
2.31.1



More information about the igt-dev mailing list