* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
@ 2020-05-15 17:53 Nicolas Robin
2020-05-15 17:53 ` [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag Nicolas Robin
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Nicolas Robin @ 2020-05-15 17:53 UTC (permalink / raw)
To: buildroot
Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
---
package/sdl2/sdl2.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 501bb4699d..4a287b66a3 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -30,6 +30,12 @@ else
SDL2_CONF_OPTS += --disable-libudev
endif
+ifeq ($(BR2_X86_CPU_HAS_SSE),y)
+SDL2_CONF_OPTS += --enable-sse
+else
+SDL2_CONF_OPTS += --disable-sse
+endif
+
ifeq ($(BR2_PACKAGE_SDL2_DIRECTFB),y)
SDL2_DEPENDENCIES += directfb
SDL2_CONF_OPTS += --enable-video-directfb
--
2.24.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag
2020-05-15 17:53 [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target Nicolas Robin
@ 2020-05-15 17:53 ` Nicolas Robin
2020-07-16 16:18 ` Peter Korsgaard
2020-05-15 17:53 ` [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target Nicolas Robin
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Nicolas Robin @ 2020-05-15 17:53 UTC (permalink / raw)
To: buildroot
Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
---
arch/Config.in.x86 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
index eb655adbca..7aae3cafb7 100644
--- a/arch/Config.in.x86
+++ b/arch/Config.in.x86
@@ -1,6 +1,8 @@
# i386/x86_64 cpu features
config BR2_X86_CPU_HAS_MMX
bool
+config BR2_X86_CPU_HAS_3DNOW
+ bool
config BR2_X86_CPU_HAS_SSE
bool
config BR2_X86_CPU_HAS_SSE2
@@ -155,15 +157,18 @@ config BR2_x86_k6_2
bool "k6-2"
depends on !BR2_x86_64
select BR2_X86_CPU_HAS_MMX
+ select BR2_X86_CPU_HAS_3DNOW
config BR2_x86_athlon
bool "athlon"
depends on !BR2_x86_64
select BR2_X86_CPU_HAS_MMX
+ select BR2_X86_CPU_HAS_3DNOW
config BR2_x86_athlon_4
bool "athlon-4"
depends on !BR2_x86_64
select BR2_X86_CPU_HAS_MMX
select BR2_X86_CPU_HAS_SSE
+ select BR2_X86_CPU_HAS_3DNOW
config BR2_x86_opteron
bool "opteron"
select BR2_X86_CPU_HAS_MMX
@@ -209,6 +214,7 @@ config BR2_x86_c3
bool "Via/Cyrix C3 (Samuel/Ezra cores)"
depends on !BR2_x86_64
select BR2_X86_CPU_HAS_MMX
+ select BR2_X86_CPU_HAS_3DNOW
config BR2_x86_c32
bool "Via C3-2 (Nehemiah cores)"
depends on !BR2_x86_64
--
2.24.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target
2020-05-15 17:53 [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target Nicolas Robin
2020-05-15 17:53 ` [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag Nicolas Robin
@ 2020-05-15 17:53 ` Nicolas Robin
2020-07-16 16:18 ` Peter Korsgaard
2020-05-15 19:48 ` [Buildroot] [PATCH 1/3] package/sdl2: enable SSE " Thomas Petazzoni
2020-07-16 16:17 ` Peter Korsgaard
3 siblings, 1 reply; 10+ messages in thread
From: Nicolas Robin @ 2020-05-15 17:53 UTC (permalink / raw)
To: buildroot
Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
---
package/sdl2/sdl2.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 4a287b66a3..830873c9e4 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -36,6 +36,12 @@ else
SDL2_CONF_OPTS += --disable-sse
endif
+ifeq ($(BR2_X86_CPU_HAS_3DNOW),y)
+SDL2_CONF_OPTS += --enable-3dnow
+else
+SDL2_CONF_OPTS += --disable-3dnow
+endif
+
ifeq ($(BR2_PACKAGE_SDL2_DIRECTFB),y)
SDL2_DEPENDENCIES += directfb
SDL2_CONF_OPTS += --enable-video-directfb
--
2.24.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
2020-05-15 17:53 [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target Nicolas Robin
2020-05-15 17:53 ` [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag Nicolas Robin
2020-05-15 17:53 ` [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target Nicolas Robin
@ 2020-05-15 19:48 ` Thomas Petazzoni
2020-05-15 19:55 ` Nicolas Robin
2020-07-16 16:17 ` Peter Korsgaard
3 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2020-05-15 19:48 UTC (permalink / raw)
To: buildroot
On Fri, 15 May 2020 19:53:55 +0200
Nicolas Robin <nrosfs@gmail.com> wrote:
> Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
> ---
> package/sdl2/sdl2.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
Thanks, series applied to next. I'm curious: you're really using SDL2
on some old platform that has 3DNow support ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
2020-05-15 19:48 ` [Buildroot] [PATCH 1/3] package/sdl2: enable SSE " Thomas Petazzoni
@ 2020-05-15 19:55 ` Nicolas Robin
2020-05-15 20:44 ` Thomas Petazzoni
0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Robin @ 2020-05-15 19:55 UTC (permalink / raw)
To: buildroot
I do! Pentium MMX 233MHz, a beast!
Regards,
Nicolas
> Le 15 mai 2020 ? 21:48, Thomas Petazzoni <thomas.petazzoni@bootlin.com> a ?crit :
>
> On Fri, 15 May 2020 19:53:55 +0200
> Nicolas Robin <nrosfs@gmail.com> wrote:
>
>> Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
>> ---
>> package/sdl2/sdl2.mk | 6 ++++++
>> 1 file changed, 6 insertions(+)
>
> Thanks, series applied to next. I'm curious: you're really using SDL2
> on some old platform that has 3DNow support ?
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
2020-05-15 19:55 ` Nicolas Robin
@ 2020-05-15 20:44 ` Thomas Petazzoni
2020-05-15 20:50 ` Nicolas Robin
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2020-05-15 20:44 UTC (permalink / raw)
To: buildroot
On Fri, 15 May 2020 21:55:38 +0200
Nicolas Robin <nrosfs@gmail.com> wrote:
> I do! Pentium MMX 233MHz, a beast!
But a Pentium MMX does not have 3DNow.
And anyway, you're using Buildroot to build a system for a Pentium MMX
at 233 Mhz ? These machines are still running and alive ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
2020-05-15 20:44 ` Thomas Petazzoni
@ 2020-05-15 20:50 ` Nicolas Robin
0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Robin @ 2020-05-15 20:50 UTC (permalink / raw)
To: buildroot
SDL2 does have SSE and 3DNOW enabled by default, I have to disable these to avoid illegal instruction on the little Pentium.
Buildroot works fine on it, and with the latest kernel :-) I don't know why I do that, I just do it.
> Le 15 mai 2020 ? 22:44, Thomas Petazzoni <thomas.petazzoni@bootlin.com> a ?crit :
>
> On Fri, 15 May 2020 21:55:38 +0200
> Nicolas Robin <nrosfs@gmail.com> wrote:
>
>> I do! Pentium MMX 233MHz, a beast!
>
> But a Pentium MMX does not have 3DNow.
>
> And anyway, you're using Buildroot to build a system for a Pentium MMX
> at 233 Mhz ? These machines are still running and alive ?
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target
2020-05-15 17:53 [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target Nicolas Robin
` (2 preceding siblings ...)
2020-05-15 19:48 ` [Buildroot] [PATCH 1/3] package/sdl2: enable SSE " Thomas Petazzoni
@ 2020-07-16 16:17 ` Peter Korsgaard
3 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2020-07-16 16:17 UTC (permalink / raw)
To: buildroot
>>>>> "Nicolas" == Nicolas Robin <nrosfs@gmail.com> writes:
> Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
Committed to 2020.02.x and 2020.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag
2020-05-15 17:53 ` [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag Nicolas Robin
@ 2020-07-16 16:18 ` Peter Korsgaard
0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2020-07-16 16:18 UTC (permalink / raw)
To: buildroot
>>>>> "Nicolas" == Nicolas Robin <nrosfs@gmail.com> writes:
> Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
Committed to 2020.02.x and 2020.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target
2020-05-15 17:53 ` [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target Nicolas Robin
@ 2020-07-16 16:18 ` Peter Korsgaard
0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2020-07-16 16:18 UTC (permalink / raw)
To: buildroot
>>>>> "Nicolas" == Nicolas Robin <nrosfs@gmail.com> writes:
> Signed-off-by: Nicolas Robin <nrosfs@gmail.com>
Committed to 2020.02.x and 2020.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-07-16 16:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-15 17:53 [Buildroot] [PATCH 1/3] package/sdl2: enable SSE only if it's supported by the target Nicolas Robin
2020-05-15 17:53 ` [Buildroot] [PATCH 2/3] arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag Nicolas Robin
2020-07-16 16:18 ` Peter Korsgaard
2020-05-15 17:53 ` [Buildroot] [PATCH 3/3] package/sdl2: enable 3DNOW only if it's supported by the target Nicolas Robin
2020-07-16 16:18 ` Peter Korsgaard
2020-05-15 19:48 ` [Buildroot] [PATCH 1/3] package/sdl2: enable SSE " Thomas Petazzoni
2020-05-15 19:55 ` Nicolas Robin
2020-05-15 20:44 ` Thomas Petazzoni
2020-05-15 20:50 ` Nicolas Robin
2020-07-16 16:17 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox