|
| 1 | + |
| 2 | +Dec-30-2021 - Klaus Ziegler |
| 3 | + |
| 4 | +To upgrade libdrm: |
| 5 | + |
| 6 | +change LIBDRM_VERS in |
| 7 | +usr/src/common/libdrm/Makefile |
| 8 | +usr/src/common/libdrm/Makefile.drm |
| 9 | +LIBDRM_HASH in |
| 10 | +usr/src/common/libdrm/Makefile |
| 11 | + |
| 12 | +If the file extension of the file to be downloaded has changed, it must be |
| 13 | +changed in usr/src/pkg/manifests/x11-library-libdrm.mf and LIBDRM_ARCHIVE in |
| 14 | +usr/src/common/libdrm/Makefile must be modified accordingly. |
| 15 | + |
| 16 | +# NOTE: if you want to contribute changes to this graphics/DRM gate, |
| 17 | +# please use your own fork of gfx-drm.git and substitute HTTPS/URL below, |
| 18 | +# to match your repository. |
| 19 | + |
| 20 | +After you have setup a build environment as follows: |
| 21 | +git clone https://github.com/illumos/gfx-drm.git |
| 22 | +cd gfx-drm |
| 23 | +export BLDENV=tools/bldenv |
| 24 | +chmod 755 tools/bldenv |
| 25 | + |
| 26 | +edit myenv.sh to suite your needs, and start the first build: |
| 27 | +/usr/bin/env -i $BLDENV myenv.sh "cd usr/src; make install" |
| 28 | + |
| 29 | +most likely this first build will err'out right after unpacking |
| 30 | +the new library archive. At this stage the make target: check |
| 31 | +is run, which checks differences of gfx-drm headers and the |
| 32 | +new library supplied headers, these 5 headers will be checked: |
| 33 | + |
| 34 | +drm.h drm_fourcc.h drm_mode.h drm_sarea.h i915_drm.h |
| 35 | + |
| 36 | +To pass check target, generate patch files for these headers: |
| 37 | +cd usr/src/common/libdrm/libdrm-2.4.<new-version>/include/drm |
| 38 | +gdiff -u drm.h <WS>/usr/src/uts/common/drm/drm.h > /tmp/drm.h.patch |
| 39 | +and the others as well, then apply these patches to headers |
| 40 | +contained in usr/src/uts/common/drm and restart the build. |
0 commit comments