Bug 13350 - Setting imx PACKAGECONFIG in mesa results in configure error
Summary: Setting imx PACKAGECONFIG in mesa results in configure error
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: ---
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-05-14 09:59 UTC by Kai Ruhnau
Modified: 2019-05-17 14:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
mesa commit oversight (758 bytes, application/octet-stream)
2019-05-15 11:06 UTC, Kai Ruhnau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Ruhnau 2019-05-14 09:59:13 UTC
In https://cgit.freedesktop.org/mesa/mesa/commit/?id=41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2, mesa removed the imx gallium driver in favor of kmsro. When PACKAGECONFIG contains "imx", the configure script fails with
configure: error: Unknown Gallium driver: imx
Comment 1 Kai Ruhnau 2019-05-15 11:05:35 UTC
I have made the 19.0.1 backwards compatible by
GALLIUMDRIVERS_append = ",kmsro,vc4"
(vc4 is a prerequisite for kmsro)
and applying the attached patch which looks like an oversight in the above commit.
Comment 2 Kai Ruhnau 2019-05-15 11:06:50 UTC
Created attachment 4517 [details]
mesa commit oversight
Comment 3 Randy MacLeod 2019-05-16 14:49:53 UTC
Alex, can you work on this?
Comment 4 Alexander Kanavin 2019-05-16 15:07:06 UTC
I have sent the PACKAGECONFIG fix:
http://lists.openembedded.org/pipermail/openembedded-core/2019-May/282373.html

As mesa has just been switched from autotools to meson, please verify if any additional fixing in mesa code is required.
Comment 5 Kai Ruhnau 2019-05-16 15:19:38 UTC
I'd guess the patch on the mailing list won't work. When I tried just adding kmsro to the drivers, I got a configure error that vc4 also needs to be added as a prerequisite. As-is, 19.0.* mesa won't build the "imx-drm_dri.so" on non-Android platforms. Hence the small mesa patch I attached.
Comment 6 Alexander Kanavin 2019-05-16 15:23:10 UTC
That was with autotools. These issues may have been resolved with meson, so please take the latest master, apply the patch I sent, try building what you need and report back.
Comment 7 Kai Ruhnau 2019-05-16 15:26:13 UTC
Oh, right. I have my "warrior"-color glasses on :)
Comment 8 Alexander Kanavin 2019-05-17 14:47:06 UTC
The patch is now in master. Reopen if additional fixing is needed.