Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 2/2] ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4
Date: Tue, 14 Jan 2014 18:10:16 +0100	[thread overview]
Message-ID: <52D56F78.50304@mind.be> (raw)
In-Reply-To: <BLU0-SMTP37762C5CD6B3E076E490852D9CB0@phx.gbl>

On 02/01/14 18:59, Bernd Kuhls wrote:
>
> Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
> ---
>   arch/Config.in.x86       |    4 ++++
>   package/ffmpeg/ffmpeg.mk |   14 +++++++++++++-
>   2 files changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
> index ce30605..15d5c16 100644
> --- a/arch/Config.in.x86
> +++ b/arch/Config.in.x86
> @@ -9,6 +9,10 @@ config BR2_X86_CPU_HAS_SSE3
>   	bool
>   config BR2_X86_CPU_HAS_SSSE3
>   	bool
> +config BR2_X86_CPU_HAS_SSE4
> +	bool
> +config BR2_X86_CPU_HAS_SSE42
> +	bool

  Since nobody selects these symbols, this patch just adds dead code, right?

  Regards,
  Arnout

>
>   choice
>   	prompt "Target Architecture Variant"
> diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
> index ea7b20d..6b5060d 100644
> --- a/package/ffmpeg/ffmpeg.mk
> +++ b/package/ffmpeg/ffmpeg.mk
> @@ -244,6 +244,18 @@ else
>   FFMPEG_CONF_OPT += --disable-ssse3
>   endif
>
> +ifeq ($(BR2_X86_CPU_HAS_SSE4),y)
> +FFMPEG_CONF_OPT += --enable-sse4
> +else
> +FFMPEG_CONF_OPT += --disable-sse4
> +endif
> +
> +ifeq ($(BR2_X86_CPU_HAS_SSE42),y)
> +FFMPEG_CONF_OPT += --enable-sse42
> +else
> +FFMPEG_CONF_OPT += --disable-sse42
> +endif
> +
>   # Explicitly disable everything that doesn't match for ARM
>   # FFMPEG "autodetects" by compiling an extended instruction via AS
>   # This works on compilers that aren't built for generic by default
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  parent reply	other threads:[~2014-01-14 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1388685585-23467-1-git-send-email-berndkuhls@hotmail.com>
2014-01-02 17:59 ` [Buildroot] [PATCH v3 2/2] ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4 Bernd Kuhls
2014-01-13 21:29   ` Peter Korsgaard
2014-01-14 17:10   ` Arnout Vandecappelle [this message]
2014-01-14 21:02     ` Samuel Martin
2014-01-14 21:05     ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52D56F78.50304@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox