[Buildroot] [PATCH] kmscube: Move to the new repository

Peter Korsgaard peter at korsgaard.com
Thu Mar 9 22:03:20 UTC 2017


>>>>> "Gary" == Gary Bisson <gary.bisson at boundarydevices.com> writes:

Hi,

 >> I see them defined in two places here:
 >> 
 >> $ grep -rn DRM_MODE_OBJECT_PLANE output/host/
 >> output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/drm/drm_mode.h:336:#define
 >> DRM_MODE_OBJECT_PLANE 0xeeeeeeee
 >> output/host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/libdrm/drm_mode.h:336:#define
 >> DRM_MODE_OBJECT_PLANE 0xeeeeeeee

 > So it means your toolchain is using kernel headers >= 4.7.
 > http://lxr.free-electrons.com/ident?v=4.6;i=DRM_MODE_OBJECT_PLANE
 > http://lxr.free-electrons.com/ident?v=4.7;i=DRM_MODE_OBJECT_PLANE

 > Not sure which header version the Linaro toolchain is using but it's
 > definitely older than 4.7.

Based on
toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in it
is using 4.6.

 > Thanks for testing it out, good to here it works but I'm still not
 > sure adding this libdrm/drm_mode.h is the best solution as-is.

The question is what happens if kmscube is run on a kernel that doesn't
support DRM_MODE_OBJECT_PLANE (E.G. kernel < 4.7)? If it really needs
support for this then we should simply make the package depend on >= 4.7
headers, and if not we could add a patch to add the include.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list