* [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options
@ 2018-07-10 8:07 Martin Jansa
2018-07-10 8:07 ` [PATCH 2/2] libdrm: allow to build native and nativesdk Martin Jansa
2018-07-10 9:41 ` [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Burton, Ross
0 siblings, 2 replies; 8+ messages in thread
From: Martin Jansa @ 2018-07-10 8:07 UTC (permalink / raw)
To: openembedded-core
* Use the same defaults as meson does, with few modifications based on
previous EXTRA_OEMESON
* move libpciaccess dependency to new intel PACKAGECONFIG
* add dependency on util-macros which was previously pulled by
libpciaccess, because it's still needed even with intel disabled:
| configure.ac:34: error: must install xorg-macros 1.12 or later
before running autoconf/autogen
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-graphics/drm/libdrm_2.4.92.bb | 26 ++++++++++++++++------
1 file changed, 19 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
index 347090cd5f..1526553254 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
@@ -8,7 +8,7 @@ SECTION = "x11/base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
PROVIDES = "drm"
-DEPENDS = "libpthread-stubs libpciaccess"
+DEPENDS = "libpthread-stubs util-macros"
SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
file://musl-ioctl.patch"
@@ -17,12 +17,24 @@ SRC_URI[sha256sum] = "e9e48fdb4de139dc4d9880aa1473158a16ff6aff63d14341367bd30a51
inherit meson pkgconfig manpages
-EXTRA_OEMESON = "-Dvalgrind=false \
- -Dcairo-tests=false \
- -Dinstall-test-programs=true \
- -Domap=true \
- -Detnaviv=true"
-
+PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs"
+PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false"
+PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess"
+PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false"
+PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false"
+PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false"
+PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false"
+PACKAGECONFIG[omap] = "-Domap=true,-Domap=false"
+PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false"
+PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false"
+PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false"
+PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false"
+PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false"
+PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
+PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind"
+PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
+PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false"
+PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native"
ALLOW_EMPTY_${PN}-drivers = "1"
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] libdrm: allow to build native and nativesdk
2018-07-10 8:07 [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Martin Jansa
@ 2018-07-10 8:07 ` Martin Jansa
2018-07-10 8:45 ` Richard Purdie
2018-07-10 9:41 ` [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Burton, Ross
1 sibling, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2018-07-10 8:07 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-graphics/drm/libdrm_2.4.92.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
index 1526553254..b4d06d19a6 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
@@ -56,3 +56,5 @@ FILES_${PN}-kms = "${libdir}/libkms*.so.*"
FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.*"
FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] libdrm: allow to build native and nativesdk
2018-07-10 8:07 ` [PATCH 2/2] libdrm: allow to build native and nativesdk Martin Jansa
@ 2018-07-10 8:45 ` Richard Purdie
2018-07-10 9:49 ` Martin Jansa
0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2018-07-10 8:45 UTC (permalink / raw)
To: Martin Jansa, openembedded-core
Normally I don't mind native/nativesdk variants but libdrm starts to
worry me as its a short step away from mesa and when we've tried native
or nativesdk versions in the past its been a nightmare, particularly
around GL.
Could you explain a little more about why we need libdrm-native?
Cheers,
Richard
On Tue, 2018-07-10 at 08:07 +0000, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/recipes-graphics/drm/libdrm_2.4.92.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> index 1526553254..b4d06d19a6 100644
> --- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> +++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> @@ -56,3 +56,5 @@ FILES_${PN}-kms = "${libdir}/libkms*.so.*"
> FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
> FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.*"
> FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options
2018-07-10 8:07 [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Martin Jansa
2018-07-10 8:07 ` [PATCH 2/2] libdrm: allow to build native and nativesdk Martin Jansa
@ 2018-07-10 9:41 ` Burton, Ross
2018-07-10 9:52 ` Martin Jansa
1 sibling, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2018-07-10 9:41 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
On 10 July 2018 at 09:07, Martin Jansa <martin.jansa@gmail.com> wrote:
> * Use the same defaults as meson does, with few modifications based on
> previous EXTRA_OEMESON
> * move libpciaccess dependency to new intel PACKAGECONFIG
> * add dependency on util-macros which was previously pulled by
> libpciaccess, because it's still needed even with intel disabled:
> | configure.ac:34: error: must install xorg-macros 1.12 or later
> before running autoconf/autogen
Why is configure giving you an error message when Meson is being used?
Ross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] libdrm: allow to build native and nativesdk
2018-07-10 8:45 ` Richard Purdie
@ 2018-07-10 9:49 ` Martin Jansa
2018-07-10 10:35 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2018-07-10 9:49 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Tue, Jul 10, 2018 at 09:45:45AM +0100, Richard Purdie wrote:
> Normally I don't mind native/nativesdk variants but libdrm starts to
> worry me as its a short step away from mesa and when we've tried native
> or nativesdk versions in the past its been a nightmare, particularly
> around GL.
>
> Could you explain a little more about why we need libdrm-native?
It's for mesa and nativesdk-mesa indeed and qemu-native with spice,
virglrenderer and opengl support enabled.
http://lists.openembedded.org/pipermail/openembedded-core/2017-September/142349.html
> On Tue, 2018-07-10 at 08:07 +0000, Martin Jansa wrote:
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > ---
> > meta/recipes-graphics/drm/libdrm_2.4.92.bb | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> > b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> > index 1526553254..b4d06d19a6 100644
> > --- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> > +++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
> > @@ -56,3 +56,5 @@ FILES_${PN}-kms = "${libdir}/libkms*.so.*"
> > FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
> > FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.*"
> > FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.17.1
> >
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options
2018-07-10 9:41 ` [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Burton, Ross
@ 2018-07-10 9:52 ` Martin Jansa
2018-07-10 10:18 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2018-07-10 9:52 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
On Tue, Jul 10, 2018 at 10:41:10AM +0100, Burton, Ross wrote:
> On 10 July 2018 at 09:07, Martin Jansa <martin.jansa@gmail.com> wrote:
> > * Use the same defaults as meson does, with few modifications based on
> > previous EXTRA_OEMESON
> > * move libpciaccess dependency to new intel PACKAGECONFIG
> > * add dependency on util-macros which was previously pulled by
> > libpciaccess, because it's still needed even with intel disabled:
> > | configure.ac:34: error: must install xorg-macros 1.12 or later
> > before running autoconf/autogen
>
> Why is configure giving you an error message when Meson is being used?
Because this error message is almost a year old from:
http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/qemu&id=2eb3926cc54fef8e8cdd39cc20fbdc129aa1e52f
switch to meson just pushed me to send this part upstream instead of
rebasing it forever.
I can update it with meson version of the error if you want.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options
2018-07-10 9:52 ` Martin Jansa
@ 2018-07-10 10:18 ` Burton, Ross
0 siblings, 0 replies; 8+ messages in thread
From: Burton, Ross @ 2018-07-10 10:18 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
I can't replicate the error, I don't think util-macros is needed anymore.
Ross
On 10 July 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Tue, Jul 10, 2018 at 10:41:10AM +0100, Burton, Ross wrote:
>> On 10 July 2018 at 09:07, Martin Jansa <martin.jansa@gmail.com> wrote:
>> > * Use the same defaults as meson does, with few modifications based on
>> > previous EXTRA_OEMESON
>> > * move libpciaccess dependency to new intel PACKAGECONFIG
>> > * add dependency on util-macros which was previously pulled by
>> > libpciaccess, because it's still needed even with intel disabled:
>> > | configure.ac:34: error: must install xorg-macros 1.12 or later
>> > before running autoconf/autogen
>>
>> Why is configure giving you an error message when Meson is being used?
>
> Because this error message is almost a year old from:
> http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/qemu&id=2eb3926cc54fef8e8cdd39cc20fbdc129aa1e52f
> switch to meson just pushed me to send this part upstream instead of
> rebasing it forever.
>
> I can update it with meson version of the error if you want.
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] libdrm: allow to build native and nativesdk
2018-07-10 9:49 ` Martin Jansa
@ 2018-07-10 10:35 ` Burton, Ross
0 siblings, 0 replies; 8+ messages in thread
From: Burton, Ross @ 2018-07-10 10:35 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
Whilst I'm not yet convinced this is something we should have on by
default, I am very interested in seeing it working.
Ross
On 10 July 2018 at 10:49, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Tue, Jul 10, 2018 at 09:45:45AM +0100, Richard Purdie wrote:
>> Normally I don't mind native/nativesdk variants but libdrm starts to
>> worry me as its a short step away from mesa and when we've tried native
>> or nativesdk versions in the past its been a nightmare, particularly
>> around GL.
>>
>> Could you explain a little more about why we need libdrm-native?
>
> It's for mesa and nativesdk-mesa indeed and qemu-native with spice,
> virglrenderer and opengl support enabled.
>
> http://lists.openembedded.org/pipermail/openembedded-core/2017-September/142349.html
>
>> On Tue, 2018-07-10 at 08:07 +0000, Martin Jansa wrote:
>> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>> > ---
>> > meta/recipes-graphics/drm/libdrm_2.4.92.bb | 2 ++
>> > 1 file changed, 2 insertions(+)
>> >
>> > diff --git a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
>> > b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
>> > index 1526553254..b4d06d19a6 100644
>> > --- a/meta/recipes-graphics/drm/libdrm_2.4.92.bb
>> > +++ b/meta/recipes-graphics/drm/libdrm_2.4.92.bb
>> > @@ -56,3 +56,5 @@ FILES_${PN}-kms = "${libdir}/libkms*.so.*"
>> > FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
>> > FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.*"
>> > FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
>> > +
>> > +BBCLASSEXTEND = "native nativesdk"
>> > --
>> > 2.17.1
>> >
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-07-10 10:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-10 8:07 [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Martin Jansa
2018-07-10 8:07 ` [PATCH 2/2] libdrm: allow to build native and nativesdk Martin Jansa
2018-07-10 8:45 ` Richard Purdie
2018-07-10 9:49 ` Martin Jansa
2018-07-10 10:35 ` Burton, Ross
2018-07-10 9:41 ` [PATCH 1/2] libdrm: Add PACKAGECONFIG support for all meson options Burton, Ross
2018-07-10 9:52 ` Martin Jansa
2018-07-10 10:18 ` Burton, Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox