From patchwork Fri Aug 10 19:30:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 176610 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 5ED552C008A for ; Sat, 11 Aug 2012 05:31:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 37E058FC06; Fri, 10 Aug 2012 19:31:38 +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 kz4Y9KNJZFTd; Fri, 10 Aug 2012 19:31:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0E3408FBB6; Fri, 10 Aug 2012 19:31: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 371978F753 for ; Fri, 10 Aug 2012 19:31:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2899B8FBB6 for ; Fri, 10 Aug 2012 19:31:33 +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 DeNdRtwMntPg for ; Fri, 10 Aug 2012 19:31:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.petroprogram.com (mail.petroprogram.com [194.89.34.74]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0357E8FAF1 for ; Fri, 10 Aug 2012 19:31:30 +0000 (UTC) Received: from localhost.localdomain (193-64-23-75-nat.elisa-mobile.fi [193.64.23.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.froberg@petroprogram.com) by mail.petroprogram.com (Postfix) with ESMTPSA id BC33844161; Fri, 10 Aug 2012 22:19:54 +0300 (EEST) From: Stefan Froberg To: buildroot@busybox.net Date: Fri, 10 Aug 2012 22:30:11 +0300 Message-Id: <1344627011-1862-1-git-send-email-stefan.froberg@petroprogram.com> X-Mailer: git-send-email 1.7.7.6 Subject: [Buildroot] [PATCH] yasm: New package 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: Stefan Froberg --- package/Config.in | 1 + package/yasm/Config.in | 9 +++++++++ package/yasm/yasm.mk | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+), 0 deletions(-) create mode 100644 package/yasm/Config.in create mode 100644 package/yasm/yasm.mk diff --git a/package/Config.in b/package/Config.in index f308de7..bde4318 100644 --- a/package/Config.in +++ b/package/Config.in @@ -91,6 +91,7 @@ source "package/sstrip/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/tar/Config.in" endif +source "package/yasm/Config.in" endmenu menu "Games" diff --git a/package/yasm/Config.in b/package/yasm/Config.in new file mode 100644 index 0000000..bb1d417 --- /dev/null +++ b/package/yasm/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_YASM + bool "yasm" + depends on BR2_i386 || BR2_x86_64 + help + Yasm is a complete rewrite of the NASM-2.10.01 assembler. + It supports the x86 and AMD64 instruction sets, accepts NASM + and GAS assembler syntaxes and outputs binary, ELF32 and ELF64 + object formats. + diff --git a/package/yasm/yasm.mk b/package/yasm/yasm.mk new file mode 100644 index 0000000..ac75d2b --- /dev/null +++ b/package/yasm/yasm.mk @@ -0,0 +1,20 @@ +############################################################# +# +# yasm +# +############################################################# +YASM_VERSION = 1.2.0 +YASM_SOURCE = yasm-$(YASM_VERSION).tar.gz +YASM_SITE = http://www.tortall.net/projects/yasm/releases/ +YASM_CONF_OPT = --disable-static + +define YASM_PRE_CONFIGURE_FIXUP +# This sed prevents it compiling 2 programs (vsyasm and ytasm) +# that are only of use on Microsoft Windows. + sed -i 's#) ytasm.*#)#' $(@D)/Makefile.in +endef + +YASM_PRE_CONFIGURE_HOOKS += YASM_PRE_CONFIGURE_FIXUP + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))