diff options
author | Thomas Senyk <thomas.senyk@nokia.com> | 2012-07-05 18:55:29 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-10 03:23:39 +0200 |
commit | 84792b5ad5d49013fe31d9cf258e978250d4ed7f (patch) | |
tree | 37e10892f84c7beb3a1841516588947f04f26fab /mkspecs/devices/linux-imx6-g++/qmake.conf | |
parent | 759c8f1697ea3c5ce2440c1c5731b5c606a9cf33 (diff) |
Adding iMX6-device-files
Change-Id: Ifdfacf7201c9ee47783ae782d1f9042fe529a039
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'mkspecs/devices/linux-imx6-g++/qmake.conf')
-rw-r--r-- | mkspecs/devices/linux-imx6-g++/qmake.conf | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-imx6-g++/qmake.conf b/mkspecs/devices/linux-imx6-g++/qmake.conf new file mode 100644 index 0000000000..870037261a --- /dev/null +++ b/mkspecs/devices/linux-imx6-g++/qmake.conf @@ -0,0 +1,46 @@ +# +# qmake configuration for the Freescale iMX6 boards (single, dual and quad) +# +# This mkspec is based and tested on the ltib-source-release 3.0.15 +# Building ltib including glib, gpu-drivers and what ever you want to use (e.g. dbus or fontconfig) +# This mkspec is for the fb-version (eglfs), and not for x11 +# A typical configure line looks like: +# /home/tsenyk/qt5/qt5/configure -opensource -confirm-license -make libs -device imx6 \ +# -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \ +# -device-option ROOTFS=<path-to-your-ltib-install>/rootfs \ +# -prefix /usr/local/Trolltech/Qt5-imx6-1 +# +# NOTE: currently ltib doesn't produce a proper staging/sysroot-filessystem. +# If one sets -sysroot <path-to-rootfs>, the toolchain doesn't find basic binaries (e.g. crt1.o), +# therefore we can't use -sysroot for this device. +# The solution for this platform is to use a seperate device-option instead of sysroot: +# -device-option ROOTFS=<path-to-ltib-install>/rootfs + +include(../common/linux_device_pre.conf) + +EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_imx6.cpp + +QMAKE_INCDIR = $${ROOTFS}/usr/include \ + $${ROOTFS}/usr/include/dbus-1.0 \ + $${ROOTFS}/usr/lib/dbus-1.0/include \ + $${ROOTFS}/usr/include/freetype2 +QMAKE_INCDIR_OPENGL_ES2 = $${ROOTFS}/usr/include/GLES2 + + +### LIBS +QMAKE_LIBDIR = $${ROOTFS}/usr/lib + +QMAKE_LIBS_EGL = -lEGL +QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL -lGAL +QMAKE_LIBS_OPENVG = -lOpenVG -lEGL -lGAL + + +### additional FLAGS +QMAKE_LFLAGS += -Wl,-rpath-link,$${ROOTFS}/usr/lib + +QMAKE_CFLAGS_RELEASE = -O2 -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 +QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE + +include(../common/linux_device_post.conf) + +load(qt_config) |