From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Wolfram Sang Date: Wed, 26 Sep 2012 13:29:26 +0200 Message-Id: <1348658966-19944-1-git-send-email-w.sang@pengutronix.de> Subject: [ptxdist] [PATCH] dt (data test program): add package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Wolfram Sang Signed-off-by: Wolfram Sang --- rules/dt.in | 9 ++++++++ rules/dt.make | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 rules/dt.in create mode 100644 rules/dt.make diff --git a/rules/dt.in b/rules/dt.in new file mode 100644 index 0000000..f10a1cd --- /dev/null +++ b/rules/dt.in @@ -0,0 +1,9 @@ +## SECTION=test_suites + +config DT + tristate + prompt "dt" + help + 'dt' is a generic data test program used to verify proper operation of + peripherals and for obtaining performance information. Since verification + of data is performed, 'dt' can be thought of as a generic diagnostic tool. diff --git a/rules/dt.make b/rules/dt.make new file mode 100644 index 0000000..d198add --- /dev/null +++ b/rules/dt.make @@ -0,0 +1,70 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Wolfram Sang +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_DT) += dt + +# +# Paths and names +# +DT_VERSION := v17.66 +DT_MD5 := bcc2e0e5c26cc066db9c6bffb8906fce +DT := dt-source-$(DT_VERSION) +DT_SUFFIX := tar.gz +# Tarball copied out of Fedora19 source RPM, since they got the tarball from the author via dropbox +# Official homepage is: http://www.scsifaq.org/RMiller_Tools/dt.html +DT_URL := http://www.pengutronix.de/software/ptxdist/temporary-src/$(DT).$(DT_SUFFIX) +DT_SOURCE := $(SRCDIR)/$(DT).$(DT_SUFFIX) +DT_DIR := $(BUILDDIR)/$(DT) +DT_LICENSE := MIT style + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +DT_CONF_TOOL := NO +# Standard CFLAGS do not set -DFIFO, -DTAPE and -Wextra, also prefer -O2 +DT_MAKE_OPT := \ + $(CROSS_ENV_PROGS) \ + CFLAGS="-O2 -DAIO -DFIFO -DMMAP -DTAPE -DTTY -D__linux__ -D_GNU_SOURCE \ + -D_FILE_OFFSET_BITS=64 -DTHREADS -Wextra" \ + -f Makefile.linux + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dt.install: + @$(call targetinfo) + install -D -m755 $(DT_DIR)/dt $(DT_PKGDIR)/usr/sbin/dt + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dt.targetinstall: + @$(call targetinfo) + + @$(call install_init, dt) + @$(call install_fixup, dt,PRIORITY,optional) + @$(call install_fixup, dt,SECTION,base) + @$(call install_fixup, dt,AUTHOR,"Wolfram Sang ") + @$(call install_fixup, dt,DESCRIPTION,missing) + + @$(call install_copy, dt, 0, 0, 0755, -, /usr/sbin/dt) + + @$(call install_finish, dt) + + @$(call touch) + +# vim: syntax=make -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de