From patchwork Sun Jun 10 11:46:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 163990 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 5452FB6FFD for ; Sun, 10 Jun 2012 21:48:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 196CA31D0D; Sun, 10 Jun 2012 11:48:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y2xDIxAnV-oA; Sun, 10 Jun 2012 11:48:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4089831D50; Sun, 10 Jun 2012 11:48:27 +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 C3E638F753 for ; Sun, 10 Jun 2012 11:48:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C34228CEC2 for ; Sun, 10 Jun 2012 11:48:18 +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 gqkGetIF0az0 for ; Sun, 10 Jun 2012 11:48:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3AB3C8CE9B for ; Sun, 10 Jun 2012 11:48:16 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so1610316wib.10 for ; Sun, 10 Jun 2012 04:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=nUnbWSWQmTbUhq2/0fwrdp7RATssOnbUlYL9uR9Z/vk=; b=bS8pDpCN8d5QZdipVwRChID40dYPcbSVeUUNddQyEhEsyGJlNuDkoeUmDfpkKH5bZl deIjjJqoZS5B2waL7pD5l8XAbAPqMqXyHwYTldspvawc4mvp3iL909Wil8lGg9ZyGbxa GLTBF8/jmsVFiRn7ovXj9HUdYulf/YuS+wZP/vefTXQTkucBo3LxIT5ABF3Y2r3xzWUN UDDKWLxhsw4q+j2xj7PgrOKxlyUS7EVN2EpoG0mhNVUe0YuaayF3z2v3Wc5UnsjKExlk raEbcv56gNVjwLlTlcEuhjJpB76WqJ0hMwSV/Hlrtiter9r2w4mC1BacIS5L32TbBp4z Jz9Q== Received: by 10.216.226.218 with SMTP id b68mr4780905weq.167.1339328894303; Sun, 10 Jun 2012 04:48:14 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id gv7sm16339840wib.4.2012.06.10.04.48.12 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 04:48:13 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 10 Jun 2012 13:46:50 +0200 Message-Id: <1339328813-6269-6-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1339328813-6269-1-git-send-email-s.martin49@gmail.com> References: <1339328813-6269-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH v3 3/6] libevas: refactor *_CONF_OPT assignment with cpu-feature options 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin diff --git a/package/efl/libevas/libevas.mk b/package/efl/libevas/libevas.mk index e716cea..c556942 100644 --- a/package/efl/libevas/libevas.mk +++ b/package/efl/libevas/libevas.mk @@ -115,23 +115,23 @@ LIBEVAS_CONF_OPT += --enable-gl-flavor-gles --enable-gles-variety-s3c6410 endif # code options -ifeq ($(BR2_i386)$(BR2_x86_64),y) -# defaults -LIBEVAS_CONF_OPT += --disable-cpu-mmx --disable-cpu-sse --disable-cpu-sse3 - -# enable if cpu variant has mmx support -ifneq ($(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_i686)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y) +ifeq ($(BR2_X86_CPU_HAS_MMX),y) LIBEVAS_CONF_OPT += --enable-cpu-mmx +else +LIBEVAS_CONF_OPT += --disable-cpu-mmx +endif -ifneq ($(BR2_x86_pentium_mmx)$(BR2_x86_pentium2)$(BR2_x86_k6)$(BR2_x86_k6_2)$(BR2_x86_athlon)$(BR2_x86_c3)$(BR2_x86_winchip_c6)$(BR2_x86_winchip2),y) +ifeq ($(BR2_X86_CPU_HAS_SSE),y) LIBEVAS_CONF_OPT += --enable-cpu-sse +else +LIBEVAS_CONF_OPT += --disable-cpu-sse +endif -ifneq ($(BR2_x86_pentium3)$(BR2_x86_pentium4)$(BR2_x86_prescott)$(BR2_x86_athlon_4)$(BR2_x86_opteron)$(BR2_x86_c32)$(BR2_x86_64_opteron),y) +ifeq ($(BR2_X86_CPU_HAS_SSE3),y) LIBEVAS_CONF_OPT += --enable-cpu-sse3 -endif # sse3 -endif # sse -endif # mmx -endif # x86 +else +LIBEVAS_CONF_OPT += --disable-cpu-sse3 +endif ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y) LIBEVAS_CONF_OPT += --enable-cpu-altivec