summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h
diff options
context:
space:
mode:
authorUmair Raihan <umair.raihan@qt.io>2022-07-11 17:41:19 +0300
committerUmair Raihan <umair.raihan@qt.io>2022-07-14 15:09:34 +0300
commit55dd9439961b21f9b4929a80dbccfffc647678b3 (patch)
treecf64773c83b9b8a56d221d73922495e06482fdb2 /mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h
parent6767ac20c972f0f2654076c22826c392e698edfc (diff)
Add new mkspecs device for Raspberry Pi 4 (64-bit)
The existing mkspecs for Raspberry Pi 4 (devices/linux-rasp-pi4-v3d-g++) was intended to compile Qt application for the 32-bit version of Raspberry Pi, thus it used compiler flags that are incompatible when compiling Qt application for the ARM 64-bit architecture. According to ARM compiler documentation, -mfpu flag is rejected by AArch64 state while its alternative, -mcpu, has to be avoided when -march flag is already defined. -mfloat-abi flag is not valid with AArch64 targets. To support both 64-bit and 32-bit architectures, I proposed to add this new mkspecs. See: https://developer.arm.com/documentation/101754/0618/armclang-Reference/armclang-Command-line-Options/-mfpu https://developer.arm.com/documentation/101754/0618/armclang-Reference/armclang-Command-line-Options/-mfloat-abi Pick-to: 6.3 6.4 Change-Id: I36574875e798281688601edd0f166922592d9830 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h')
-rw-r--r--mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h b/mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h
new file mode 100644
index 0000000000..3fe85b661c
--- /dev/null
+++ b/mkspecs/devices/linux-rasp-pi4-aarch64/qplatformdefs.h
@@ -0,0 +1,8 @@
+/****************************************************************************
+**
+** Copyright (C) 2022 The Qt Company Ltd.
+** SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+**
+****************************************************************************/
+
+#include "../../linux-g++/qplatformdefs.h"