From patchwork Sun Jun 10 11:46:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 163989 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 90B38B6FFD for ; Sun, 10 Jun 2012 21:48:47 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A3FC531D0F; Sun, 10 Jun 2012 11:48:45 +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 oeyRyqv9+FfJ; Sun, 10 Jun 2012 11:48:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3900131D03; Sun, 10 Jun 2012 11:48:25 +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 67D0C8F753 for ; Sun, 10 Jun 2012 11:48:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 65F048CEC2 for ; Sun, 10 Jun 2012 11:48:17 +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 VJ0Bxq4pNmre for ; Sun, 10 Jun 2012 11:48:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5A9AD8CEB8 for ; Sun, 10 Jun 2012 11:48:16 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id fm10so1974735wgb.10 for ; Sun, 10 Jun 2012 04:48:16 -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=o8A9fgzOZZejMklOfQ+9pvpxPcBNWesc07vdrHe84k8=; b=d4rGzMh+ciVG+NkyJYx2NYXiNFDcmj1gH7NJMpJ661e7T0H95Ar9Y0j+ZZ8FC3/6VS gl5P/m2gXeBsKfgh6zJoJzNDkOFS4wB6jLudYPY9A2T/EJtkMfZtcvdKSbmNhqOjXXEI b1x1q+YxdBQBu0k58Y3T8LC1pMmPVXchSZ1apcxQ6WrrtcC2KGPOjTy0PwG9FXbjA7b/ QWhFYe71tmd8ijPpo5brss2UH0KIDV94phOX1IR4YniEEyq2zl/iWzuMMW4aX4DwPVZU k8GlzlmPATL6T68rO6pJ4fUl9d+zcPPBq60WOBLC1SwaWA0I3E/Vw6R1DJQmiG/UQhht X9gg== Received: by 10.180.107.70 with SMTP id ha6mr13304713wib.16.1339328896005; Sun, 10 Jun 2012 04:48: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 gv7sm16339840wib.4.2012.06.10.04.48.14 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 04:48:15 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 10 Jun 2012 13:46:51 +0200 Message-Id: <1339328813-6269-7-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 4/6] 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))