| 1 |
# |
| 2 |
# qmake configuration for the Tegra2 boards. |
| 3 |
# |
| 4 |
# This mkspec is based and tested on the TrimSlice using "Ubuntu Natty (11.04) - l4t.r15.01"-release. |
| 5 |
# It might work with other boards and releases as well. |
| 6 |
# A typical configure line looks like this: |
| 7 |
# <path-to-qt-src>/configure -opensource -confirm-license -make libs -prefix /usr/local/Qt-5.0.0/Qt5-tegra2 |
| 8 |
# -device tegra2 -device-option CROSS_COMPILE=<path-to-crosstoolchain>/bin/arm-none-linux-gnueabi- \ |
| 9 |
# -sysroot <path-to-rootfs> |
| 10 |
|
| 11 |
include(../common/linux_device_pre.conf) |
| 12 |
|
| 13 |
QMAKE_INCDIR_POST += $$[QT_SYSROOT]/usr/include |
| 14 |
|
| 15 |
QMAKE_LIBDIR_POST += $$[QT_SYSROOT]/usr/lib \ |
| 16 |
$$[QT_SYSROOT]/lib/arm-linux-gnueabi \ |
| 17 |
$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi |
| 18 |
|
| 19 |
QMAKE_RPATHLINKDIR_POST += \ |
| 20 |
$$[QT_SYSROOT]/usr/lib \ |
| 21 |
$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi \ |
| 22 |
$$[QT_SYSROOT]/lib/arm-linux-gnueabi |
| 23 |
|
| 24 |
TEGRA2_CFLAGS = -mtune=cortex-a9 -march=armv7-a -mhard-float -mfloat-abi=softfp -mfpu=vfpv3-d16 |
| 25 |
QMAKE_CFLAGS += $$TEGRA2_CFLAGS |
| 26 |
QMAKE_CXXFLAGS += $$TEGRA2_CFLAGS |
| 27 |
|
| 28 |
include(../common/linux_arm_device_post.conf) |
| 29 |
|
| 30 |
load(qt_config) |