* [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration
@ 2019-02-05 21:41 Peter Seiderer
2019-02-15 21:49 ` Thomas Petazzoni
2019-02-22 11:45 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Peter Seiderer @ 2019-02-05 21:41 UTC (permalink / raw)
To: buildroot
The Qt configure auto detection (and announced runtime detection
feature) failes (see e.g. [1]), so override the configuration
with the buildroot determined settings.
[1] http://lists.busybox.net/pipermail/buildroot/2019-January/241862.html
Reported-by: David Picard <dplamp@gmx.com>
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Changes v1 -> v2:
- use 'else ifeq' (suggested by Thomas Petazzoni)
- fix typo (anounced vs. announced)
- clarify no-avx512 comment
Notes:
- suggested by Arnout Vandecappelle [2]
[2] http://lists.busybox.net/pipermail/buildroot/2019-January/242030.html
---
package/qt5/qt5base/qt5base.mk | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index d10f233b46..b0307344d5 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -33,6 +33,25 @@ else
QT5BASE_DEPENDENCIES += pcre2
endif
+ifeq ($(BR2_X86_CPU_HAS_SSE2),)
+QT5BASE_CONFIGURE_OPTS += -no-sse2
+else ifeq ($(BR2_X86_CPU_HAS_SSE3),)
+QT5BASE_CONFIGURE_OPTS += -no-sse3
+else ifeq ($(BR2_X86_CPU_HAS_SSSE3),)
+QT5BASE_CONFIGURE_OPTS += -no-ssse3
+else ifeq ($(BR2_X86_CPU_HAS_SSE4),)
+QT5BASE_CONFIGURE_OPTS += -no-sse4.1
+else ifeq ($(BR2_X86_CPU_HAS_SSE42),)
+QT5BASE_CONFIGURE_OPTS += -no-sse4.2
+else ifeq ($(BR2_X86_CPU_HAS_AVX),)
+QT5BASE_CONFIGURE_OPTS += -no-avx
+else ifeq ($(BR2_X86_CPU_HAS_AVX2),)
+QT5BASE_CONFIGURE_OPTS += -no-avx2
+else
+# no buildroot BR2_X86_CPU_HAS_AVX512 option yet for qt configure
+# option # '-no-avx512' (available for latest only)
+endif
+
QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
ifeq ($(BR2_PACKAGE_LIBDRM),y)
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration
2019-02-05 21:41 [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration Peter Seiderer
@ 2019-02-15 21:49 ` Thomas Petazzoni
2019-02-22 11:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-02-15 21:49 UTC (permalink / raw)
To: buildroot
On Tue, 5 Feb 2019 22:41:22 +0100
Peter Seiderer <ps.report@gmx.net> wrote:
> The Qt configure auto detection (and announced runtime detection
> feature) failes (see e.g. [1]), so override the configuration
> with the buildroot determined settings.
>
> [1] http://lists.busybox.net/pipermail/buildroot/2019-January/241862.html
>
> Reported-by: David Picard <dplamp@gmx.com>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> Changes v1 -> v2:
> - use 'else ifeq' (suggested by Thomas Petazzoni)
> - fix typo (anounced vs. announced)
> - clarify no-avx512 comment
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration
2019-02-05 21:41 [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration Peter Seiderer
2019-02-15 21:49 ` Thomas Petazzoni
@ 2019-02-22 11:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-02-22 11:45 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Seiderer <ps.report@gmx.net> writes:
> The Qt configure auto detection (and announced runtime detection
> feature) failes (see e.g. [1]), so override the configuration
> with the buildroot determined settings.
> [1] http://lists.busybox.net/pipermail/buildroot/2019-January/241862.html
> Reported-by: David Picard <dplamp@gmx.com>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> Changes v1 -> v2:
> - use 'else ifeq' (suggested by Thomas Petazzoni)
> - fix typo (anounced vs. announced)
> - clarify no-avx512 comment
> Notes:
> - suggested by Arnout Vandecappelle [2]
> [2] http://lists.busybox.net/pipermail/buildroot/2019-January/242030.html
Committed to 2018.02.x and 2018.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-22 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05 21:41 [Buildroot] [PATCH v2] package/qt5/qt5base: handle sse2/sse3/ssse3/sse4.1/sse4.2/avx/avx2 configuration Peter Seiderer
2019-02-15 21:49 ` Thomas Petazzoni
2019-02-22 11:45 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.