Skip to contentSkip to conversation

package/mesa3d: dri i965 driver needs headers >= 3.18

PATCH New Bernd Kuhls 2 participants 2 messages Oct 1, 2018 – Oct 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: dri i965 driver needs headers >= 3.18

Since
https://cgit.freedesktop.org/mesa/mesa/commit/src/intel/tools/aubinator.c?h=18.2&id=3228335b55c300cd07c4aa69329e58e70afae6a8
the dri i965 driver needs linux/memfd.h which is not available in kernel headers older than 3.18:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/uapi/linux/memfd.h?id=refs/tags/v3.18.36

Fixes
http://autobuild.buildroot.net/results/5aa/5aac9e9cad789da11b05cbf5d2a5e3f3cf8f1614/

---
Although the autobuilders only detected the build error with mesa3d 18.2.0 I could reproduce the problem with version 18.2.1 as well.

 package/mesa3d/Config.in | 5 +++++
 1 file changed, 5 insertions(+)
package/mesa3d/Config.in +5 -0
index aea579d4e3..a516332d46 100644
@@ -187,11 +187,16 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
 config BR2_PACKAGE_MESA3D_DRI_DRIVER_I965
 	bool "DRI i965 driver"
 	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 # memfd.h
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER
 	select BR2_PACKAGE_LIBDRM_INTEL
 	help
 	  Support for i965-based Intel GPUs.
 
+comment "DRI i965 driver needs a toolchain w/ headers >= 3.18"
+	depends on BR2_i386 || BR2_x86_64
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
+
 config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
 	bool "DRI nouveau driver"
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER
Signature · 1 line
2.19.0
#1 lore raw

PATCH 1/1 package/mesa3d: dri i965 driver needs headers >= 3.18

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Since
https://cgit.freedesktop.org/mesa/mesa/commit/src/intel/tools/aubinator.c?h=18.2&id=3228335b55c300cd07c4aa69329e58e70afae6a8
the dri i965 driver needs linux/memfd.h which is not available in kernel headers older than 3.18:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/uapi/linux/memfd.h?id=refs/tags/v3.18.36

Quoted 7 lines

Fixes
http://autobuild.buildroot.net/results/5aa/5aac9e9cad789da11b05cbf5d2a5e3f3cf8f1614/

---
Although the autobuilders only detected the build error with mesa3d 18.2.0 I could reproduce the problem with version 18.2.1 as well.

uapi/linux/memfd.h seems to be added by:

commit 9183df25fe7b194563db3fec6dc3202a5855839c

Author: David Herrmann <[email protected]>
Date:   Fri Aug 8 14:25:29 2014 -0700

shm: add memfd_create() syscall

Which was added as part of the 3.17 cycle:

git describe --contains 9183df25fe7b194563db3fec6dc3202a5855839c v3.17-rc1~73^2~22

So I've changed it to 3.17 and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard