0031-aarch64_arm64_mkspecs.patch 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. From 7090fc80ff630712a90de92403190f647dd38a39 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Lisandro=20Dami=C3=A1n=20Nicanor=20P=C3=A9rez=20Meyer?=
  3. <perezmeyer@gmail.com>
  4. Date: Sat, 15 Mar 2014 15:35:00 -0300
  5. Subject: [PATCH] mkspecs for AArch64 (aka arm64).
  6. Patch by Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
  7. licensed under either Public Domain or BSD:
  8. <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735488#179>
  9. Change-Id: I21f17953234cfb176bac023e52ecdc927fc5c1a9
  10. Upstream-Status: Pending
  11. Signed-off-by: Kai Kang <kai.kang@windriver.com>
  12. ---
  13. configure | 3 +++
  14. mkspecs/linux-g++-aarch64/qmake.conf | 27 ++++++++++++++++++++
  15. mkspecs/linux-g++-aarch64/qplatformdefs.h | 42 +++++++++++++++++++++++++++++++
  16. 3 files changed, 72 insertions(+)
  17. create mode 100644 mkspecs/linux-g++-aarch64/qmake.conf
  18. create mode 100644 mkspecs/linux-g++-aarch64/qplatformdefs.h
  19. diff --git a/configure b/configure
  20. index a9ba7c8..e57d053 100755
  21. --- a/configure
  22. +++ b/configure
  23. @@ -2808,6 +2808,9 @@ if [ "$CFG_EMBEDDED" != "no" ]; then
  24. *86_64)
  25. PLATFORM=qws/linux-x86_64-g++
  26. ;;
  27. + aarch64)
  28. + PLATFORM=linux-aarch64-g++
  29. + ;;
  30. *)
  31. PLATFORM=qws/linux-generic-g++
  32. ;;
  33. diff --git a/mkspecs/linux-g++-aarch64/qmake.conf b/mkspecs/linux-g++-aarch64/qmake.conf
  34. new file mode 100644
  35. index 0000000..ebc0a92
  36. --- /dev/null
  37. +++ b/mkspecs/linux-g++-aarch64/qmake.conf
  38. @@ -0,0 +1,27 @@
  39. +#
  40. +# qmake configuration for linux-g++
  41. +#
  42. +# Written for GNU/Linux platforms that have both lib and lib64 directories,
  43. +# like the AMD Opteron.
  44. +#
  45. +
  46. +MAKEFILE_GENERATOR = UNIX
  47. +TARGET_PLATFORM = unix
  48. +TEMPLATE = app
  49. +CONFIG += qt warn_on release incremental link_prl gdb_dwarf_index
  50. +QT += core gui
  51. +QMAKE_INCREMENTAL_STYLE = sublib
  52. +
  53. +QMAKE_CFLAGS =
  54. +QMAKE_LFLAGS =
  55. +
  56. +QMAKE_CFLAGS_RELEASE += -O2
  57. +
  58. +include(../common/linux.conf)
  59. +include(../common/gcc-base-unix.conf)
  60. +include(../common/g++-unix.conf)
  61. +
  62. +QMAKE_LIBDIR_X11 = /usr/X11R6/lib64
  63. +QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64
  64. +
  65. +load(qt_config)
  66. diff --git a/mkspecs/linux-g++-aarch64/qplatformdefs.h b/mkspecs/linux-g++-aarch64/qplatformdefs.h
  67. new file mode 100644
  68. index 0000000..562128b
  69. --- /dev/null
  70. +++ b/mkspecs/linux-g++-aarch64/qplatformdefs.h
  71. @@ -0,0 +1,42 @@
  72. +/****************************************************************************
  73. +**
  74. +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
  75. +** Contact: http://www.qt-project.org/legal
  76. +**
  77. +** This file is part of the qmake spec of the Qt Toolkit.
  78. +**
  79. +** $QT_BEGIN_LICENSE:LGPL$
  80. +** Commercial License Usage
  81. +** Licensees holding valid commercial Qt licenses may use this file in
  82. +** accordance with the commercial license agreement provided with the
  83. +** Software or, alternatively, in accordance with the terms contained in
  84. +** a written agreement between you and Digia. For licensing terms and
  85. +** conditions see http://qt.digia.com/licensing. For further information
  86. +** use the contact form at http://qt.digia.com/contact-us.
  87. +**
  88. +** GNU Lesser General Public License Usage
  89. +** Alternatively, this file may be used under the terms of the GNU Lesser
  90. +** General Public License version 2.1 as published by the Free Software
  91. +** Foundation and appearing in the file LICENSE.LGPL included in the
  92. +** packaging of this file. Please review the following information to
  93. +** ensure the GNU Lesser General Public License version 2.1 requirements
  94. +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
  95. +**
  96. +** In addition, as a special exception, Digia gives you certain additional
  97. +** rights. These rights are described in the Digia Qt LGPL Exception
  98. +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
  99. +**
  100. +** GNU General Public License Usage
  101. +** Alternatively, this file may be used under the terms of the GNU
  102. +** General Public License version 3.0 as published by the Free Software
  103. +** Foundation and appearing in the file LICENSE.GPL included in the
  104. +** packaging of this file. Please review the following information to
  105. +** ensure the GNU General Public License version 3.0 requirements will be
  106. +** met: http://www.gnu.org/copyleft/gpl.html.
  107. +**
  108. +**
  109. +** $QT_END_LICENSE$
  110. +**
  111. +****************************************************************************/
  112. +
  113. +#include "../linux-g++/qplatformdefs.h"
  114. --
  115. 2.1.0