| 1 | # |
| 2 | # qmake configuration for the NXP i.MX8 based boards (64-bit) |
| 3 | # |
| 4 | # The configuration below is set up for running with the fbdev-style |
| 5 | # Vivante graphics stack. (so eglfs with the eglfs_viv backend, no |
| 6 | # direct drm use via eglfs_kms) |
| 7 | |
| 8 | # Wayland should also be functional. However, when writing Wayland |
| 9 | # *compositors* with Qt, the eglfs backend will have to be switched to |
| 10 | # eglfs_viv_wl by setting the QT_QPA_EGLFS_INTEGRATION environment |
| 11 | # variable. |
| 12 | # |
| 13 | # Below is an example configure line that assumes there is an AArch64 |
| 14 | # toolchain and sysroot available in $HOME/imx8. On device Qt is |
| 15 | # expected to be placed under /usr/local/qt514 whereas on the host |
| 16 | # 'make install' will copy the host tools and the target libraries to |
| 17 | # $HOME/imx8/qt5. |
| 18 | # |
| 19 | # ./configure -release -opengl es2 -device linux-imx8-g++ \ |
| 20 | # -device-option CROSS_COMPILE=~/imx8/toolchain/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- \ |
| 21 | # -sysroot ~/imx8/sysroot \ |
| 22 | # -opensource -confirm-license -make libs -prefix /usr/local/qt514 -extprefix ~/imx8/qt5 -v |
| 23 | |
| 24 | include(../common/linux_device_pre.conf) |
| 25 | |
| 26 | QMAKE_LIBS_EGL += -lEGL |
| 27 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL |
| 28 | QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL |
| 29 | |
| 30 | IMX8_CFLAGS = -march=armv8-a -mtune=cortex-a72.cortex-a53 -DLINUX=1 -DEGL_API_FB=1 |
| 31 | QMAKE_CFLAGS += $$IMX8_CFLAGS |
| 32 | QMAKE_CXXFLAGS += $$IMX8_CFLAGS |
| 33 | |
| 34 | DISTRO_OPTS += aarch64 |
| 35 | |
| 36 | # Preferred eglfs backend |
| 37 | EGLFS_DEVICE_INTEGRATION = eglfs_viv |
| 38 | |
| 39 | include(../common/linux_arm_device_post.conf) |
| 40 | |
| 41 | load(qt_config) |