summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorThomas Senyk <thomas.senyk@pelagicore.com>2012-07-27 17:42:25 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-08 17:27:51 +0200
commit38a6d7e7a1b3b14c9812f7dada4c82c5b0ec1fae (patch)
tree7df6533846bea2284c9582b60d2b473f764c37d9 /mkspecs
parentfcf12a214cd364c5f00bc237b4bba6619181b5d5 (diff)
Introduce a Tegra2 mkspec to the device specs
Change-Id: I16275f2f289a78e3217d765934b999b188005c14 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/devices/linux-tegra2-g++/qmake.conf31
-rw-r--r--mkspecs/devices/linux-tegra2-g++/qplatformdefs.h42
2 files changed, 73 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-tegra2-g++/qmake.conf b/mkspecs/devices/linux-tegra2-g++/qmake.conf
new file mode 100644
index 0000000000..c480def19c
--- /dev/null
+++ b/mkspecs/devices/linux-tegra2-g++/qmake.conf
@@ -0,0 +1,31 @@
+#
+# 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:
+# <path-to-qt-src>/configure -opensource -confirm-license -make libs -prefix /usr/local/Trolltech/Qt5-tegra2
+# -device tegra2 -device-option CROSS_COMPILE=<path-to-crosstoolchain>/bin/arm-none-linux-gnueabi- \
+# -sysroot <path-to-rootfs> -no-neon
+
+# CAUTION: The Tegra2 chips don't support neon, make sure it will not be used (-no-neon)
+
+include(../common/linux_device_pre.conf)
+
+QMAKE_INCDIR += $$[QT_SYSROOT]/usr/include
+
+QMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib \
+ $$[QT_SYSROOT]/lib/arm-linux-gnueabi \
+ $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi
+
+QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib \
+ -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabi \
+ -Wl,-rpath-link,$$[QT_SYSROOT]/lib/arm-linux-gnueabi
+
+TEGRA2_CFLAGS = -mtune=cortex-a9 -march=armv7-a -mhard-float -mfloat-abi=softfp -mfpu=vfpv3-d16
+QMAKE_CFLAGS += $$TEGRA2_CFLAGS
+QMAKE_CXXFLAGS += $$TEGRA2_CFLAGS
+
+include(../common/linux_device_post.conf)
+
+load(qt_config)
diff --git a/mkspecs/devices/linux-tegra2-g++/qplatformdefs.h b/mkspecs/devices/linux-tegra2-g++/qplatformdefs.h
new file mode 100644
index 0000000000..9236ebd657
--- /dev/null
+++ b/mkspecs/devices/linux-tegra2-g++/qplatformdefs.h
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"