2012-07-27 15:42:25 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for the Tegra2 boards.
|
|
|
|
#
|
|
|
|
# This mkspec is based and tested on the TrimSlice using "Ubuntu Natty (11.04) - l4t.r15.01"-release.
|
|
|
|
# It might work with other boards and releases as well.
|
|
|
|
# A typical configure line looks like this:
|
2012-12-02 16:24:19 +00:00
|
|
|
# <path-to-qt-src>/configure -opensource -confirm-license -make libs -prefix /usr/local/Qt-5.0.0/Qt5-tegra2
|
2012-07-27 15:42:25 +00:00
|
|
|
# -device tegra2 -device-option CROSS_COMPILE=<path-to-crosstoolchain>/bin/arm-none-linux-gnueabi- \
|
2013-12-09 03:58:37 +00:00
|
|
|
# -sysroot <path-to-rootfs>
|
2012-07-27 15:42:25 +00:00
|
|
|
|
|
|
|
include(../common/linux_device_pre.conf)
|
|
|
|
|
2017-05-16 15:28:22 +00:00
|
|
|
QMAKE_INCDIR_POST += $$[QT_SYSROOT]/usr/include
|
2012-07-27 15:42:25 +00:00
|
|
|
|
2017-05-16 15:28:22 +00:00
|
|
|
QMAKE_LIBDIR_POST += $$[QT_SYSROOT]/usr/lib \
|
2013-03-19 01:57:31 +00:00
|
|
|
$$[QT_SYSROOT]/lib/arm-linux-gnueabi \
|
|
|
|
$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi
|
2012-07-27 15:42:25 +00:00
|
|
|
|
2017-05-16 16:06:24 +00:00
|
|
|
QMAKE_RPATHLINKDIR_POST += \
|
|
|
|
$$[QT_SYSROOT]/usr/lib \
|
|
|
|
$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi \
|
|
|
|
$$[QT_SYSROOT]/lib/arm-linux-gnueabi
|
2012-07-27 15:42:25 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
TEGRA2_CFLAGS = -mtune=cortex-a9 -march=armv7-a -mhard-float -mfloat-abi=softfp -mfpu=vfpv3-d16
|
|
|
|
QMAKE_CFLAGS += $$TEGRA2_CFLAGS
|
|
|
|
QMAKE_CXXFLAGS += $$TEGRA2_CFLAGS
|
2012-07-27 15:42:25 +00:00
|
|
|
|
2013-07-18 20:45:47 +00:00
|
|
|
include(../common/linux_arm_device_post.conf)
|
2012-07-27 15:42:25 +00:00
|
|
|
|
|
|
|
load(qt_config)
|