[oe] [meta-qt5][PATCH] qt5: use extra .pri file from linux-oe-g++ mkspec

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Oct 16 13:35:55 UTC 2015


On Thu, Oct 15, 2015 at 11:52 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Thu, Oct 15, 2015 at 6:38 AM, Otavio Salvador
> <otavio.salvador at ossystems.com.br> wrote:
>> On Thu, Oct 15, 2015 at 8:47 AM, Martin Jansa <martin.jansa at gmail.com> wrote:
>>> On Thu, Oct 15, 2015 at 01:00:31PM +0300, Samuli Piippo wrote:
>>>> Load additional oe-device-extra.pri in the default linux-oe-g++ mkspec to
>>>> allow simple changing of target dependent values. This is useful for any
>>>> target that needs to specify e.g., QMAKE_LIBS_EGL or other additional configs.
>>>
>>> Looks good, but people using this need to be aware that it will cause
>>> qtbase and everything depending on it MACHINE_ARCH which is very
>>> unfortunate considering the time needed to build things like
>>> qtwebengine/qtwebkit.
>>
>> However I don't see how any BSP needing to pass extra libraries or
>> flags would not be machine specific.
>
> Multiple machines based on the same SoC (or SoC family) can often
> share the same graphics libraries.
>
>> One way to avoid this would be to split out the QPA backend for those
>> to another recipe and this to become machine specific and include the
>> .pri file.
>
> Alternatively create "egl.pc" and "glesv2.pc" pkg-config files for the
> graphics libs. The qtbase build can then set QMAKE_LIBS_EGL etc
> automatically without needing changes to the default linux-oe-g++
> mkspec.
>
> e.g. something like:
>
>   https://github.com/heiher/raspberrypi-firmware-pkgconfig/tree/master/pkgconfig

We do similar for i.MX and we made a sub-arch to allow sharing the binaries.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-devel mailing list