* [Buildroot] [PATCH] ffmpeg: disable MIPS DSP options by default
@ 2015-10-14 15:58 Vicente Olivert Riera
2015-10-14 20:31 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Vicente Olivert Riera @ 2015-10-14 15:58 UTC (permalink / raw)
To: buildroot
DSP support depends on the core implementation, not on the ISA, so
enabling it for mips64r2 is not correct since you can build a mips64r2
core without DSP support.
Disable mipsdspr1 and mipsdspr2 options by default and let the user
enable them via the BR2_PACKAGE_FFMPEG_EXTRACONF kconfig option, which
will take preference and override the default values.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/ffmpeg/ffmpeg.mk | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index f817471..87415f3 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -41,6 +41,8 @@ FFMPEG_CONF_OPTS = \
--enable-runtime-cpudetect \
--disable-hardcoded-tables \
--disable-memalign-hack \
+ --disable-mipsdspr1 \
+ --disable-mipsdspr2 \
--disable-msa \
--enable-hwaccels \
--disable-avisynth \
@@ -355,16 +357,6 @@ FFMPEG_CONF_OPTS += \
--disable-mips32r2
endif
-ifeq ($(BR2_mips_64r2),y)
-FFMPEG_CONF_OPTS += \
- --enable-mipsdspr1 \
- --enable-mipsdspr2
-else
-FFMPEG_CONF_OPTS += \
- --disable-mipsdspr1 \
- --disable-mipsdspr2
-endif
-
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
FFMPEG_CONF_OPTS += --enable-altivec
else
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] ffmpeg: disable MIPS DSP options by default
2015-10-14 15:58 [Buildroot] [PATCH] ffmpeg: disable MIPS DSP options by default Vicente Olivert Riera
@ 2015-10-14 20:31 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-10-14 20:31 UTC (permalink / raw)
To: buildroot
Dear Vicente Olivert Riera,
On Wed, 14 Oct 2015 16:58:22 +0100, Vicente Olivert Riera wrote:
> DSP support depends on the core implementation, not on the ISA, so
> enabling it for mips64r2 is not correct since you can build a mips64r2
> core without DSP support.
>
> Disable mipsdspr1 and mipsdspr2 options by default and let the user
> enable them via the BR2_PACKAGE_FFMPEG_EXTRACONF kconfig option, which
> will take preference and override the default values.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/ffmpeg/ffmpeg.mk | 12 ++----------
> 1 files changed, 2 insertions(+), 10 deletions(-)
Applied, thanks. As Gustavo suggested, it might be worth adding a
Config.in option in arch/Config.in.mips to allow the usage of the DSP
instructions (of course, if such instructions are in practice used by
ffmpeg, and available on a useful selection of MIPS SoCs).
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-14 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 15:58 [Buildroot] [PATCH] ffmpeg: disable MIPS DSP options by default Vicente Olivert Riera
2015-10-14 20:31 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox