From patchwork Thu Jul 5 22:42:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 169288 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 BAB872C01CC for ; Fri, 6 Jul 2012 08:44:52 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E6D948964D; Thu, 5 Jul 2012 22:44:43 +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 aTpsQPFUhzl0; Thu, 5 Jul 2012 22:44:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3FE448A268; Thu, 5 Jul 2012 22:44:34 +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 9A0208F753 for ; Thu, 5 Jul 2012 22:44:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8D48D89DBA for ; Thu, 5 Jul 2012 22:44:21 +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 6omMeaGKx2Sl for ; Thu, 5 Jul 2012 22:44:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id DF0688576B for ; Thu, 5 Jul 2012 22:44:18 +0000 (UTC) Received: by wibhm2 with SMTP id hm2so147080wib.4 for ; Thu, 05 Jul 2012 15:44:17 -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=Qw1ZWwOozFDm4SDu1MPgbscTMMBaggbuTZD0G2qovoI=; b=V+C9mE4G5KRExDs/0CSt9IbGql2uNcbW7klbVRr/TujhF7wB838yxUsvYsLhWUXDg+ YiDIc1/STmzszyyHXVuQqDniMuk5RPmrBBklixROC2OpQp8ovd1WxtW+YciLcVC1PtPp P3hoGpfteyAj8spJ8Qgiii8ygiCGOhow3LFbTCzrB872z9THibUhhzg+q7bGFVHIDcio bEEuWwwxLTbOjA/b0D+e4jTKawWI9rJAUDDmfbctrsFUVuQUAG6JBIbetfJXZ8FDCoR6 66tDHK9mbLXhOczavR6iDvppNISLQfJqVeIw0e0zZ0YhiZmbdtu8aYXK3sTX91jazIr/ N/fw== Received: by 10.216.135.222 with SMTP id u72mr4219677wei.77.1341528256964; Thu, 05 Jul 2012 15:44:16 -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 j6sm3868134wiy.4.2012.07.05.15.44.15 (version=SSLv3 cipher=OTHER); Thu, 05 Jul 2012 15:44:16 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Fri, 6 Jul 2012 00:42:33 +0200 Message-Id: <1341528156-4197-3-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.11.1 In-Reply-To: <1341528156-4197-1-git-send-email-s.martin49@gmail.com> References: <1341528156-4197-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH v4 2/5] 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