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

Gary Bisson gary.bisson at boundarydevices.com
Thu Mar 9 14:53:37 UTC 2017


Hi Fabio,

On Wed, Mar 8, 2017 at 4:47 PM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi Gary,
>
> On Wed, Mar 8, 2017 at 12:17 PM, Gary Bisson
> <gary.bisson at boundarydevices.com> wrote:
>
>> Can you tell me where is DRM_MODE_OBJECT_PLANE defined in your case?
>>
>> Here is my output:
>> $ grep -rn DRM_MODE_OBJECT_PLANE output/host/usr/arm-buildroot-linux-gnueabihf/
>> output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libdrm/drm_mode.h:336:#define
>> DRM_MODE_OBJECT_PLANE 0xeeeeeeee
>
> 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.

>From the manifest we know the toolchain is build on a machine running
a 4.4.x kernel:
https://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.02-linux-manifest.txt

>> Also, is adding my fix to your build bringing any issue?
>
> Just tried your patch and the build still succeeds with it.

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.

Thomas, do you have any advice on what's the best approach here.

Regards,
Gary



More information about the buildroot mailing list