* [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode
@ 2024-01-31 20:37 Fabrice Fontaine
2024-02-06 17:23 ` Peter Korsgaard
2024-02-29 21:56 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-01-31 20:37 UTC (permalink / raw)
To: buildroot; +Cc: Michael Fischer, Fabrice Fontaine
Fix the following build failure in Thumb mode:
/home/autobuild/autobuild/instance-12/output-1/build/sdl2-2.28.5/src/atomic/SDL_atomic.c:292:2: error: #error This file should be built in arm mode so the mcr instruction is available for memory barriers
292 | #error This file should be built in arm mode so the mcr instruction is available for memory barriers
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/70587e7c2452563d655d054a7623bb2fd969862e
- http://autobuild.buildroot.org/results/2cb11b1f3c013c1f49e2b5383a11ba3f1db6a24c
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/sdl2/sdl2.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 4646e7d1f8..42b4a433e8 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -54,6 +54,10 @@ SDL2_POST_INSTALL_STAGING_HOOKS += SDL2_FIX_SDL2_CONFIG_CMAKE
# We must enable static build to get compilation successful.
SDL2_CONF_OPTS += --enable-static
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+SDL2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
SDL2_DEPENDENCIES += udev
SDL2_CONF_OPTS += --enable-libudev
@@ -76,7 +80,7 @@ endif
ifeq ($(BR2_PACKAGE_SDL2_DIRECTFB),y)
SDL2_DEPENDENCIES += directfb
SDL2_CONF_OPTS += --enable-video-directfb
-SDL2_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
+SDL2_CONF_ENV += ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
else
SDL2_CONF_OPTS += --disable-video-directfb
endif
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode
2024-01-31 20:37 [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode Fabrice Fontaine
@ 2024-02-06 17:23 ` Peter Korsgaard
2024-02-29 21:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-02-06 17:23 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Michael Fischer, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure in Thumb mode:
> /home/autobuild/autobuild/instance-12/output-1/build/sdl2-2.28.5/src/atomic/SDL_atomic.c:292:2: error: #error This file should be built in arm mode so the mcr instruction is available for memory barriers
> 292 | #error This file should be built in arm mode so the mcr instruction is available for memory barriers
> | ^~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/70587e7c2452563d655d054a7623bb2fd969862e
> - http://autobuild.buildroot.org/results/2cb11b1f3c013c1f49e2b5383a11ba3f1db6a24c
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode
2024-01-31 20:37 [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode Fabrice Fontaine
2024-02-06 17:23 ` Peter Korsgaard
@ 2024-02-29 21:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-02-29 21:56 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Michael Fischer, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure in Thumb mode:
> /home/autobuild/autobuild/instance-12/output-1/build/sdl2-2.28.5/src/atomic/SDL_atomic.c:292:2: error: #error This file should be built in arm mode so the mcr instruction is available for memory barriers
> 292 | #error This file should be built in arm mode so the mcr instruction is available for memory barriers
> | ^~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/70587e7c2452563d655d054a7623bb2fd969862e
> - http://autobuild.buildroot.org/results/2cb11b1f3c013c1f49e2b5383a11ba3f1db6a24c
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.02.x and 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-29 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 20:37 [Buildroot] [PATCH 1/1] package/sdl2: force arm mode instead of Thumb mode Fabrice Fontaine
2024-02-06 17:23 ` Peter Korsgaard
2024-02-29 21:56 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox