From patchwork Mon Jul 16 21:37:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 171264 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 75D9E2C0119 for ; Tue, 17 Jul 2012 07:39:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 84907A019E; Mon, 16 Jul 2012 21:39:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SivzvSASNyZR; Mon, 16 Jul 2012 21:39:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 376EEA01B5; Mon, 16 Jul 2012 21:39:06 +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 253868F753 for ; Mon, 16 Jul 2012 21:39:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 10FF98192C for ; Mon, 16 Jul 2012 21:39:05 +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 44EsUjIokQFI for ; Mon, 16 Jul 2012 21:39:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3BC3F80597 for ; Mon, 16 Jul 2012 21:39:02 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hm2so2481683wib.10 for ; Mon, 16 Jul 2012 14:39:01 -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=GWORz1GJCyAu9yA/jJkoGlfTBijycK65Tkirpu/oTa8=; b=pVHVky7tQd+i8vAw9t8KZBpsHsYEKLtvlFpnpgR4iC8xxT/STjrKMaO93DQa9H+o3D JQKVnlFTlSVTBl38eIPl4IhHF5fWVUiPTdn62yHn8ZXg+9kXhusNfyIAiP3Gt8WBtYfW L9L/3e2FgpDGm4BWpJCw3aFEs6uxVib+7r0ypK6jCOebY4i/5ci47mpWE1C0EL+Rt8+x tqw5gPJo1V20tIp0gQD99tfZqzVf9Wk3JPZOSlzXv0ObqyjPTXBq8wkJCwV0qgt7rflI sEws1qwF/yBmnM85Sd+5F9SFXIb27dHJcQkhrnhhf4rDN98CUfPmr/Q06k7aj4Ta31+w ltlw== Received: by 10.216.255.148 with SMTP id j20mr1537046wes.106.1342474741856; Mon, 16 Jul 2012 14:39:01 -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 cu1sm23524403wib.6.2012.07.16.14.39.00 (version=SSLv3 cipher=OTHER); Mon, 16 Jul 2012 14:39:00 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Mon, 16 Jul 2012 23:37:28 +0200 Message-Id: <1342474650-10084-4-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1342474650-10084-1-git-send-email-s.martin49@gmail.com> References: <1342474650-10084-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH v5 3/5] sdl_gfx: 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/sdl_gfx/sdl_gfx.mk b/package/sdl_gfx/sdl_gfx.mk index 5503bbd..343c7a1 100644 --- a/package/sdl_gfx/sdl_gfx.mk +++ b/package/sdl_gfx/sdl_gfx.mk @@ -11,13 +11,7 @@ SDL_GFX_DEPENDENCIES = sdl SDL_GFX_CONF_OPT = \ --with-sdl-prefix=$(STAGING_DIR)/usr \ --disable-sdltest \ - --enable-static - -# enable mmx for newer x86's -ifeq ($(BR2_i386)$(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y) -SDL_GFX_CONF_OPT += --enable-mmx -else -SDL_GFX_CONF_OPT += --disable-mmx -endif + --enable-static \ + $(if $(BR2_X86_CPU_HAS_MMX),--enable-mmx,--disable-mmx) $(eval $(call AUTOTARGETS))