!46 add loongarch64 support
From: @huajingyun Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
c41d3f406a
40
add-loongarch64-support.patch
Normal file
40
add-loongarch64-support.patch
Normal file
@ -0,0 +1,40 @@
|
||||
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
index 70e697ca..9be294a2 100644
|
||||
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||
@@ -102,6 +102,7 @@ int main(int argc, char** argv) {
|
||||
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
|
||||
defined(__riscv) || \
|
||||
defined(__or1k__) || defined(__arc__) || \
|
||||
+ defined(__loongarch64) || \
|
||||
defined(__EMSCRIPTEN__)
|
||||
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||
#elif defined(__mc68000__) || \
|
||||
diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp
|
||||
index 1d00b7f5..74f3c8fc 100644
|
||||
--- a/src/corelib/global/archdetect.cpp
|
||||
+++ b/src/corelib/global/archdetect.cpp
|
||||
@@ -59,6 +59,8 @@
|
||||
# define ARCH_PROCESSOR "x86_64"
|
||||
#elif defined(Q_PROCESSOR_IA64)
|
||||
# define ARCH_PROCESSOR "ia64"
|
||||
+#elif defined(Q_PROCESSOR_LOONGARCH_64)
|
||||
+# define ARCH_PROCESSOR "loongarch64"
|
||||
#elif defined(Q_PROCESSOR_MIPS_64)
|
||||
# define ARCH_PROCESSOR "mips64"
|
||||
#elif defined(Q_PROCESSOR_MIPS)
|
||||
diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h
|
||||
index 8d657208..69f84a15 100644
|
||||
--- a/src/corelib/global/qprocessordetection.h
|
||||
+++ b/src/corelib/global/qprocessordetection.h
|
||||
@@ -223,6 +223,10 @@
|
||||
# define Q_PROCESSOR_WORDSIZE 8
|
||||
// Q_BYTE_ORDER not defined, use endianness auto-detection
|
||||
|
||||
+#elif defined(__loongarch64)
|
||||
+# define Q_PROCESSOR_LOONGARCH_64
|
||||
+# define Q_PROCESSOR_WORDSIZE 8
|
||||
+
|
||||
/*
|
||||
MIPS family, known revisions: I, II, III, IV, 32, 64
|
||||
|
||||
@ -34,7 +34,7 @@ BuildRequires: pkgconfig(libsystemd)
|
||||
Name: qt5-qtbase
|
||||
Summary: Qt5 - QtBase components
|
||||
Version: 5.15.2
|
||||
Release: 3
|
||||
Release: 4
|
||||
|
||||
|
||||
# See LGPL_EXCEPTIONS.txt, for exception details
|
||||
@ -112,6 +112,7 @@ Patch0018: 0001-modify-kwin_5.18-complier-error.patch
|
||||
# https://launchpad.net/ubuntu/+source/qtbase-opensource-src/5.15.2+dfsg-15
|
||||
Patch0019: CVE-2021-38593.patch
|
||||
Patch0020: CVE-2022-25255.patch
|
||||
Patch0021: add-loongarch64-support.patch
|
||||
# Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires.
|
||||
# Those themes are there for platform integration. If the required libraries are
|
||||
# not there, the platform to integrate with isn't either. Then Qt will just
|
||||
@ -367,6 +368,7 @@ Qt5 libraries used for drawing widgets and OpenGL items.
|
||||
%patch0018 -p1
|
||||
%patch0019 -p1
|
||||
%patch0020 -p1
|
||||
%patch0021 -p1
|
||||
# move some bundled libs to ensure they're not accidentally used
|
||||
pushd src/3rdparty
|
||||
mkdir UNUSED
|
||||
@ -1008,6 +1010,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Dec 12 2022 huajingyun <huajingyun@loongson.cn> - 5.15.2-4
|
||||
- add loongarch64 support
|
||||
|
||||
* Wed Jul 27 2022 peijiankang <peijiankang@kylinos.cn> - 5.15.2-3
|
||||
- remove unnecessary file
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user