From: Thomas Senyk Date: Fri, 27 Jul 2012 15:42:25 +0000 (+0200) Subject: Introduce a Tegra2 mkspec to the device specs X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38a6d7e7a1b3b14c9812f7dada4c82c5b0ec1fae;p=profile%2Fivi%2Fqtbase.git Introduce a Tegra2 mkspec to the device specs Change-Id: I16275f2f289a78e3217d765934b999b188005c14 Reviewed-by: Paul Olav Tvete --- diff --git a/mkspecs/devices/linux-tegra2-g++/qmake.conf b/mkspecs/devices/linux-tegra2-g++/qmake.conf new file mode 100644 index 0000000..c480def --- /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: +# /configure -opensource -confirm-license -make libs -prefix /usr/local/Trolltech/Qt5-tegra2 +# -device tegra2 -device-option CROSS_COMPILE=/bin/arm-none-linux-gnueabi- \ +# -sysroot -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 0000000..9236ebd --- /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"