* [Buildroot] [PATCH 1/1] package/mplayer: disable inline asm on i386
@ 2017-04-02 11:25 Bernd Kuhls
2017-04-06 14:03 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2017-04-02 11:25 UTC (permalink / raw)
To: buildroot
A similar fix was committed to ffmpeg:
https://git.buildroot.net/buildroot/commit/package/ffmpeg?id=bfb8df2ad9b164b421d25294c6882c8b61dc59a5
Special cflags, added by
https://git.buildroot.net/buildroot/commit/package/multimedia/mplayer?id=fd38100e1189d19cad87a64c52df2c773eb47e40
are no longer needed now so remove them as well.
Fixes
http://autobuild.buildroot.net/results/030/03066dd8937ef4c75d62f237fd195df92b247ee2//
and many others.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/mplayer/mplayer.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 6b3009abc..14ab8acee 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -285,10 +285,13 @@ MPLAYER_CFLAGS += -mfpu=neon
endif
endif
+define MPLAYER_DISABLE_INLINE_ASM
+ $(SED) 's,#define HAVE_INLINE_ASM 1,#define HAVE_INLINE_ASM 0,g' \
+ $(@D)/config.h
+endef
+
ifeq ($(BR2_i386),y)
-# inline asm breaks with "can't find a register in class 'GENERAL_REGS'"
-# inless we free up ebp
-MPLAYER_CFLAGS += -fomit-frame-pointer
+MPLAYER_POST_CONFIGURE_HOOKS += MPLAYER_DISABLE_INLINE_ASM
endif
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/mplayer: disable inline asm on i386
2017-04-02 11:25 [Buildroot] [PATCH 1/1] package/mplayer: disable inline asm on i386 Bernd Kuhls
@ 2017-04-06 14:03 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-04-06 14:03 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 2 Apr 2017 13:25:07 +0200, Bernd Kuhls wrote:
> A similar fix was committed to ffmpeg:
> https://git.buildroot.net/buildroot/commit/package/ffmpeg?id=bfb8df2ad9b164b421d25294c6882c8b61dc59a5
It is not similar: ffmpeg only disables it for i586, while for mplayer
you disable it for the x86 architecture completely.
> Fixes
> http://autobuild.buildroot.net/results/030/03066dd8937ef4c75d62f237fd195df92b247ee2//
And this configuration is i686, so if the ffmpeg fix of disabling
inline ASM is used, it will not solve this build failure.
> ifeq ($(BR2_i386),y)
> -# inline asm breaks with "can't find a register in class 'GENERAL_REGS'"
> -# inless we free up ebp
> -MPLAYER_CFLAGS += -fomit-frame-pointer
> +MPLAYER_POST_CONFIGURE_HOOKS += MPLAYER_DISABLE_INLINE_ASM
> endif
Do we really want to disable this for all x86 platforms?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-06 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02 11:25 [Buildroot] [PATCH 1/1] package/mplayer: disable inline asm on i386 Bernd Kuhls
2017-04-06 14:03 ` Thomas Petazzoni
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.