From patchwork Thu Jan 2 17:59:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 306247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id D8AF02C0086 for ; Fri, 3 Jan 2014 05:00:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 36BDD84218; Thu, 2 Jan 2014 18:00:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ez8mYwK1l7RR; Thu, 2 Jan 2014 18:00:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7337184570; Thu, 2 Jan 2014 18:00:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0E8CC1BF952 for ; Thu, 2 Jan 2014 18:00:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0535388615 for ; Thu, 2 Jan 2014 18:00:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iG31Fp6mdVIH for ; Thu, 2 Jan 2014 17:59:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from blu0-omc3-s15.blu0.hotmail.com (blu0-omc3-s15.blu0.hotmail.com [65.55.116.90]) by whitealder.osuosl.org (Postfix) with ESMTP id 0943284D78 for ; Thu, 2 Jan 2014 17:59:57 +0000 (UTC) Received: from BLU0-SMTP377 ([65.55.116.74]) by blu0-omc3-s15.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Jan 2014 09:59:57 -0800 X-TMN: [6Qh3u3wREfnZk5UgV3ebSAGzAr6NLGuW] X-Originating-Email: [berndkuhls@hotmail.com] Message-ID: Received: from fli4l.lan.fli4l ([79.247.133.83]) by BLU0-SMTP377.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Jan 2014 09:59:55 -0800 Received: from fli4lbuild.lan.fli4l ([192.168.1.50]:40619) by fli4l.lan.fli4l with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VymYj-0003Dy-6b; Thu, 02 Jan 2014 18:59:53 +0100 From: Bernd Kuhls To: buildroot@busybox.net Date: Thu, 2 Jan 2014 18:59:45 +0100 X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1388685585-23467-1-git-send-email-berndkuhls@hotmail.com> References: <1388685585-23467-1-git-send-email-berndkuhls@hotmail.com> X-OriginalArrivalTime: 02 Jan 2014 17:59:55.0574 (UTC) FILETIME=[71887560:01CF07E4] MIME-Version: 1.0 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v3 2/2] ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Bernd Kuhls --- 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 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