]> code.ossystems Code Review - meta-freescale.git/commit
waffle: Fix x11 build without GBM support
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 23 Apr 2020 13:44:03 +0000 (08:44 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 24 Apr 2020 17:00:40 +0000 (14:00 -0300)
commitef01e8bffe63621871c696bcc3c5b68b40680033
treee2c9c74da849735b8929fe9dc93b2276620beb1c
parente6f581f2064ed12a0535042bbb96361b6f617184
waffle: Fix x11 build without GBM support

For i.MX 6 and 7, building x11_egl failed with the following:

```
In file included from ../waffle-1.6.0/src/waffle/surfaceless_egl/sl_window.c:35:
../waffle-1.6.0/src/waffle/surfaceless_egl/sl_platform.h:30:10: fatal error: gbm.h: No such file or directory
   30 | #include <gbm.h>
      |          ^~~~~~~
```

The failure is not surprising since i.MX 6 and 7 don't
support GBM. What is surprising is surfaceless_egl is
built even if it is disabled. The meson dependency
for surfaceless_egl was incorrectly tied to x11_egl,
so fix that, plus add a dependency on GBM.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 76467d61049bd89a25f5a26592bc6c8808e51ff9)
recipes-graphics/waffle/waffle/0002-meson-Separate-surfaceless-option-from-x11.patch [new file with mode: 0644]
recipes-graphics/waffle/waffle_%.bbappend