diff options
Diffstat (limited to 'recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc')
-rw-r--r-- | recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 25 |
1 files changed, 16 insertions, 9 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 ce23f2e..e8e491e 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 | |||
@@ -41,8 +41,8 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | |||
41 | ${@base_contains("DISTRO_FEATURES", "directfb", "${GPU_DFBLIBS}", "", d)} \ | 41 | ${@base_contains("DISTRO_FEATURES", "directfb", "${GPU_DFBLIBS}", "", d)} \ |
42 | " | 42 | " |
43 | 43 | ||
44 | KEEP_XLIBS = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" | 44 | USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" |
45 | KEEP_DFBLIBS = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" | 45 | USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" |
46 | 46 | ||
47 | # Inhibit warnings about files being stripped. | 47 | # Inhibit warnings about files being stripped. |
48 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 48 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
@@ -69,19 +69,26 @@ do_install () { | |||
69 | rm -r ${D}${includedir}/GL | 69 | rm -r ${D}${includedir}/GL |
70 | cp -axr ${S}/opt ${D} | 70 | cp -axr ${S}/opt ${D} |
71 | 71 | ||
72 | if [ "${KEEP_XLIBS}" = "no" ]; then | ||
73 | rm ${D}${libdir}/*-x11.so | ||
74 | fi | ||
75 | if [ "${KEEP_DFBLIBS}" = "no" ]; then | ||
76 | rm ${D}${libdir}/*-dfb.so | ||
77 | fi | ||
78 | |||
79 | # FIXME: Drop default library as we need to explicit link to one | 72 | # FIXME: Drop default library as we need to explicit link to one |
80 | # of supported backends | 73 | # of supported backends |
81 | rm ${D}${libdir}/libEGL.so \ | 74 | rm ${D}${libdir}/libEGL.so \ |
82 | ${D}${libdir}/libGAL.so \ | 75 | ${D}${libdir}/libGAL.so \ |
83 | ${D}${libdir}/libVIVANTE.so | 76 | ${D}${libdir}/libVIVANTE.so |
84 | 77 | ||
78 | if [ "${USE_X11}" = "yes" ]; then | ||
79 | find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' | ||
80 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' | ||
81 | else | ||
82 | if [ "${USE_DFB}" = "yes" ]; then | ||
83 | find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' | ||
84 | find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' | ||
85 | else | ||
86 | # Regular framebuffer | ||
87 | find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' | ||
88 | find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' | ||
89 | fi | ||
90 | fi | ||
91 | |||
85 | find ${D}${libdir} -type f -exec chmod 644 {} \; | 92 | find ${D}${libdir} -type f -exec chmod 644 {} \; |
86 | find ${D}${includedir} -type f -exec chmod 644 {} \; | 93 | find ${D}${includedir} -type f -exec chmod 644 {} \; |
87 | } | 94 | } |