From patchwork Wed Oct 8 15:12:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 397661 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 817081400DE for ; Thu, 9 Oct 2014 02:12:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A836291B49; Wed, 8 Oct 2014 15:12:16 +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 mNTBX5TG1p8t; Wed, 8 Oct 2014 15:12:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3A2B791B32; Wed, 8 Oct 2014 15:12:15 +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 9E8561C2BA3 for ; Wed, 8 Oct 2014 15:12:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 98FA191B32 for ; Wed, 8 Oct 2014 15:12:13 +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 YAKGjV+TJpT4 for ; Wed, 8 Oct 2014 15:12:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by whitealder.osuosl.org (Postfix) with ESMTP id 9244E91B2D for ; Wed, 8 Oct 2014 15:12:12 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 53FA9FC8341D for ; Wed, 8 Oct 2014 16:12:07 +0100 (IST) Received: from KLMAIL02.kl.imgtec.org (10.40.60.222) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 8 Oct 2014 16:12:10 +0100 Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (10.40.60.222) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 8 Oct 2014 16:12:10 +0100 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 8 Oct 2014 16:12:09 +0100 From: Vicente Olivert Riera To: Date: Wed, 8 Oct 2014 16:12:05 +0100 Message-ID: <1412781125-11737-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Subject: [Buildroot] [PATCH v3] package/trinity: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Adding the Trinity Linux System call fuzz tester. Fails to compile for uClibc because it tries to include 'execinfo.h' which is only available if uClibc has been built with UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this package for uClibc by now until upstream fixes this problem. Signed-off-by: Vicente Olivert Riera --- package/Config.in | 1 + package/trinity/Config.in | 14 ++++++++++++++ package/trinity/trinity.mk | 31 +++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 package/trinity/Config.in create mode 100644 package/trinity/trinity.mk diff --git a/package/Config.in b/package/Config.in index ea89c96..3b570ee 100644 --- a/package/Config.in +++ b/package/Config.in @@ -89,6 +89,7 @@ endif source "package/sysprof/Config.in" source "package/tinymembench/Config.in" source "package/trace-cmd/Config.in" + source "package/trinity/Config.in" source "package/valgrind/Config.in" source "package/whetstone/Config.in" endmenu diff --git a/package/trinity/Config.in b/package/trinity/Config.in new file mode 100644 index 0000000..ea2c458 --- /dev/null +++ b/package/trinity/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_TRINITY + bool "trinity" + # Fails to compile for uClibc because it tries to include 'execinfo.h' + # which is only available if uClibc has been built with + # UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this + # package for uClibc by now until upstream fixes this problem. + depends on !BR2_TOOLCHAIN_USES_UCLIBC + help + A Linux System call fuzz tester + + http://codemonkey.org.uk/projects/trinity/ + +comment "trinity is not supported for uClibc" + depends on BR2_TOOLCHAIN_USES_UCLIBC diff --git a/package/trinity/trinity.mk b/package/trinity/trinity.mk new file mode 100644 index 0000000..1e6c54a --- /dev/null +++ b/package/trinity/trinity.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# trinity +# +################################################################################ + +TRINITY_VERSION = c02034ec08d951cde3429905e64afe450cbc47db +TRINITY_SITE = $(call github,kernelslacker,trinity,$(TRINITY_VERSION)) +TRINITY_LICENSE = GPLv2 +TRINITY_LICENSE_FILES = COPYING + +define TRINITY_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure.sh) +endef + +define TRINITY_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) +endef + +define TRINITY_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install +endef + +# Install helper scripts +define TRINITY_INSTALL_HELPER_SCRIPTS + mkdir -p $(TARGET_DIR)/usr/libexec/trinity + cp -p $(@D)/scripts/* $(TARGET_DIR)/usr/libexec/trinity/ +endef +TRINITY_POST_INSTALL_TARGET_HOOKS += TRINITY_INSTALL_HELPER_SCRIPTS + +$(eval $(generic-package))