summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2018-06-22 15:17:13 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2018-07-11 14:17:54 -0300
commitc326240080b83cb8ff601737969a6bf9e82fa1d8 (patch)
tree685a785b57113dd348e5b80970ca914b01515bf6
parenta9280cb755c260922f78c5b1c65f2760b407e859 (diff)
downloadmeta-freescale-c326240080b83cb8ff601737969a6bf9e82fa1d8.tar.gz
imx-gpu-viv: Add i.MX 8 support
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc32
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.2.4.p1.2-aarch64.bb6
2 files changed, 32 insertions, 6 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index f0e549f1..0ec0ff9d 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -51,6 +51,8 @@ inherit fsl-eula-unpack
51SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" 51SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
52 52
53# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below 53# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below
54IMX_PACKAGES_GBM = ""
55IMX_PACKAGES_GBM_mx8 = "libgbm-imx libgbm-imx-dev"
54PACKAGES =+ "libclc-imx libclc-imx-dev \ 56PACKAGES =+ "libclc-imx libclc-imx-dev \
55 libgl-imx libgl-imx-dev \ 57 libgl-imx libgl-imx-dev \
56 libgles-imx libgles-imx-dev \ 58 libgles-imx libgles-imx-dev \
@@ -64,7 +66,7 @@ PACKAGES =+ "libclc-imx libclc-imx-dev \
64 libgal-imx libgal-imx-dev \ 66 libgal-imx libgal-imx-dev \
65 libvivante-dri-imx \ 67 libvivante-dri-imx \
66 libvsc-imx \ 68 libvsc-imx \
67 libgbm-imx libgbm-imx-dev \ 69 ${IMX_PACKAGES_GBM} \
68 libwayland-viv-imx libwayland-viv-imx-dev \ 70 libwayland-viv-imx libwayland-viv-imx-dev \
69 libgc-wayland-protocol-imx libgc-wayland-protocol-imx-dev \ 71 libgc-wayland-protocol-imx libgc-wayland-protocol-imx-dev \
70 libwayland-egl-imx-dev \ 72 libwayland-egl-imx-dev \
@@ -122,9 +124,16 @@ python __anonymous() {
122IS_MX6SL = "0" 124IS_MX6SL = "0"
123IS_MX6SL_mx6sl = "1" 125IS_MX6SL_mx6sl = "1"
124 126
127IS_MX8 = "0"
128IS_MX8_mx8 = "1"
129
125PACKAGE_FP_TYPE = "hardfp" 130PACKAGE_FP_TYPE = "hardfp"
126 131
127GLES3_HEADER_REMOVALS = "gl31.h gl32.h" 132HAS_GBM = "false"
133HAS_GBM_mx8 = "true"
134
135GLES3_HEADER_REMOVALS = "gl31.h gl32.h"
136GLES3_HEADER_REMOVALS_mx8mq = "gl32.h"
128 137
129do_install () { 138do_install () {
130 install -d ${D}${libdir} 139 install -d ${D}${libdir}
@@ -140,6 +149,9 @@ do_install () {
140 rm -rf ${D}${includedir}/vulkan/ 149 rm -rf ${D}${includedir}/vulkan/
141 150
142 install -d ${D}${libdir}/pkgconfig 151 install -d ${D}${libdir}/pkgconfig
152 if ${HAS_GBM}; then
153 install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/gbm.pc ${D}${libdir}/pkgconfig/gbm.pc
154 fi
143 155
144 # The preference order, based in DISTRO_FEATURES, is Wayland (with or without X11), X11 and fb 156 # The preference order, based in DISTRO_FEATURES, is Wayland (with or without X11), X11 and fb
145 if [ "${USE_WL}" = "yes" ]; then 157 if [ "${USE_WL}" = "yes" ]; then
@@ -213,6 +225,14 @@ do_install () {
213 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2 225 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
214 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so 226 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
215 227
228 if [ "${IS_MX8}" = "1" ]; then
229 # Install the vulkan driver in a sub-folder. When installed in the same
230 # folder as the vulkan loader layer library, an incorrect linkage is
231 # created from libvulkan.so.1 to our library instead of the loader
232 # layer library.
233 install -d ${D}${libdir}/vulkan
234 mv ${D}${libdir}/libvulkan-${backend}.so ${D}${libdir}/vulkan/libvulkan_VSI.so
235 fi
216 for header in ${GLES3_HEADER_REMOVALS}; do 236 for header in ${GLES3_HEADER_REMOVALS}; do
217 rm -f ${D}${includedir}/GLES3/${header} 237 rm -f ${D}${includedir}/GLES3/${header}
218 done 238 done
@@ -277,9 +297,9 @@ INSANE_SKIP_libgal-imx += "build-deps"
277 297
278FILES_libvsc-imx = "${libdir}/libVSC${SOLIBS}" 298FILES_libvsc-imx = "${libdir}/libVSC${SOLIBS}"
279 299
280FILES_libgbm-imx = "${libdir}/libgbm${SOLIBS} ${libdir}/gbm_viv${SOLIBS}" 300FILES_libgbm-imx_mx8 = "${libdir}/libgbm${SOLIBS} ${libdir}/gbm_viv${SOLIBS}"
281FILES_libgbm-imx-dev = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h ${libdir}/libgbm${SOLIBSDEV}" 301FILES_libgbm-imx-dev_mx8 = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h ${libdir}/libgbm${SOLIBSDEV}"
282RDEPENDS_libgbm-imx += "libdrm" 302RDEPENDS_libgbm-imx_append_mx8 = " libdrm"
283 303
284FILES_libvulkan-imx = "${libdir}/vulkan/libvulkan_VSI${SOLIBS}" 304FILES_libvulkan-imx = "${libdir}/vulkan/libvulkan_VSI${SOLIBS}"
285FILES_libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/vulkan/libvulkan_VSI${SOLIBSDEV}" 305FILES_libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/vulkan/libvulkan_VSI${SOLIBSDEV}"
@@ -345,4 +365,4 @@ FILES_imx-gpu-viv-tools = "${bindir}/gmem_info"
345FILES_imx-gpu-viv-demos = "/opt" 365FILES_imx-gpu-viv-demos = "/opt"
346INSANE_SKIP_imx-gpu-viv-demos += "rpaths dev-deps" 366INSANE_SKIP_imx-gpu-viv-demos += "rpaths dev-deps"
347 367
348# COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl)" 368# COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx8)"
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.2.4.p1.2-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.2.4.p1.2-aarch64.bb
new file mode 100644
index 00000000..4b1a72ca
--- /dev/null
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.2.4.p1.2-aarch64.bb
@@ -0,0 +1,6 @@
1require imx-gpu-viv-6.inc
2
3SRC_URI[md5sum] = "28ef177f53be40c738f46018cebf055c"
4SRC_URI[sha256sum] = "27ed3f58681cef18f87ea20946cc89b2cef4848006064303d20583e6ed7aeec7"
5
6COMPATIBLE_MACHINE = "(mx8)"