diff options
author | Thomas Senyk <thomas.senyk@pelagicore.com> | 2013-06-21 15:00:42 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2013-06-24 17:44:31 -0300 |
commit | 97d99ae9ccd82be2c7de4322e74b1d75f8987c21 (patch) | |
tree | 133b2847f657a61cc6a7d5967e87798803dcf15a | |
parent | 2b1684a1d587ee467f96974fd96908dfa06eb54a (diff) | |
download | meta-fsl-arm-97d99ae9ccd82be2c7de4322e74b1d75f8987c21.tar.gz |
gpu-viv-bin-mx6q: fixing pkg-config files for non-x11 builds.
egl.pc and glesv1_cm.pc had 'Requires.private' on x11 libs.
This got removed from them. To keep the x11 behavior,
new x11 specific pkg-config files were added and will be installed
by gpu-viv-bin-mx6q.inc, if "X11'-DISTRO_FEATURE is present.
For uniformity reasons, the same schema got applied to glesv2.pc
Change-Id: I23c1b685d4be10119a0f90179c2e87e1db64ca05
Signed-off-by: Thomas Senyk <thomas.senyk@pelagicore.com>
6 files changed, 49 insertions, 5 deletions
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc index e1f10b6..8e099a7 100644 --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | |||
@@ -17,8 +17,11 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ | |||
17 | file://gc_hal_eglplatform-remove-xlib-undefs.patch \ | 17 | file://gc_hal_eglplatform-remove-xlib-undefs.patch \ |
18 | file://fix-conflicting-TLS-definition.patch \ | 18 | file://fix-conflicting-TLS-definition.patch \ |
19 | file://egl.pc \ | 19 | file://egl.pc \ |
20 | file://egl_x11.pc \ | ||
20 | file://glesv1_cm.pc \ | 21 | file://glesv1_cm.pc \ |
22 | file://glesv1_cm_x11.pc \ | ||
21 | file://glesv2.pc \ | 23 | file://glesv2.pc \ |
24 | file://glesv2_x11.pc \ | ||
22 | " | 25 | " |
23 | 26 | ||
24 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | 27 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ |
@@ -63,9 +66,6 @@ do_install () { | |||
63 | cp -axr ${S}/opt ${D} | 66 | cp -axr ${S}/opt ${D} |
64 | 67 | ||
65 | install -d ${D}${libdir}/pkgconfig | 68 | install -d ${D}${libdir}/pkgconfig |
66 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ | ||
67 | install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/ | ||
68 | install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/ | ||
69 | 69 | ||
70 | # FIXME: Remove Wayland contents | 70 | # FIXME: Remove Wayland contents |
71 | rm -r ${D}${includedir}/wayland-viv | 71 | rm -r ${D}${includedir}/wayland-viv |
@@ -76,7 +76,15 @@ do_install () { | |||
76 | cp -r ${S}/usr/lib/dri ${D}${libdir} | 76 | cp -r ${S}/usr/lib/dri ${D}${libdir} |
77 | find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' | 77 | find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' |
78 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' | 78 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' |
79 | |||
80 | install -m 0644 ${WORKDIR}/egl_x11.pc ${D}${libdir}/pkgconfig/egl.pc | ||
81 | install -m 0644 ${WORKDIR}/glesv1_cm_x11.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
82 | install -m 0644 ${WORKDIR}/glesv2_x11.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
79 | else | 83 | else |
84 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/egl.pc | ||
85 | install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
86 | install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
87 | |||
80 | if [ "${USE_DFB}" = "yes" ]; then | 88 | if [ "${USE_DFB}" = "yes" ]; then |
81 | find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' | 89 | find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' |
82 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' | 90 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' |
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc index 5921583..a21922d 100644 --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc | |||
@@ -5,7 +5,7 @@ includedir=/usr/include | |||
5 | 5 | ||
6 | Name: egl | 6 | Name: egl |
7 | Description: Vivante EGL library | 7 | Description: Vivante EGL library |
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | 8 | Requires.private: |
9 | Version: 8.0 | 9 | Version: 8.0 |
10 | Libs: -L${libdir} -lEGL | 10 | Libs: -L${libdir} -lEGL |
11 | Libs.private: -lm -lpthread -ldl | 11 | Libs.private: -lm -lpthread -ldl |
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc new file mode 100644 index 0000000..5921583 --- /dev/null +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX | ||
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc index e801633..d97b067 100644 --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc | |||
@@ -5,7 +5,7 @@ includedir=/usr/include | |||
5 | 5 | ||
6 | Name: glesv1_cm | 6 | Name: glesv1_cm |
7 | Description: Vivante OpenGL ES 1.1 CM library | 7 | Description: Vivante OpenGL ES 1.1 CM library |
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | 8 | Requires.private: |
9 | Version: 8.0 | 9 | Version: 8.0 |
10 | Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL | 10 | Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL |
11 | Libs.private: -lm -lpthread -ldl | 11 | Libs.private: -lm -lpthread -ldl |
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc new file mode 100644 index 0000000..e801633 --- /dev/null +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv1_cm | ||
7 | Description: Vivante OpenGL ES 1.1 CM library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} | ||
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc new file mode 100644 index 0000000..57ad807 --- /dev/null +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv2 | ||
7 | Description: Vivante OpenGL ES 2.0 library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv2 -lEGL -lGAL | ||
11 | Libs.private: -lpthread -lrt | ||
12 | Cflags: -I${includedir} | ||