Bug 13350

Summary: Setting imx PACKAGECONFIG in mesa results in configure error
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Kai Ruhnau <kai.ruhnau>
Component: graphicsAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.7   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
mesa commit oversight none

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.