mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Wolfram Sang <w.sang@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Wolfram Sang <w.sang@pengutronix.de>
Subject: [ptxdist] [PATCH] dt (data test program): add package
Date: Wed, 26 Sep 2012 13:29:26 +0200	[thread overview]
Message-ID: <1348658966-19944-1-git-send-email-w.sang@pengutronix.de> (raw)

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
 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 <w.sang@pengutronix.de>
+#
+# 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 <w.sang@pengutronix.de>")
+	@$(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

                 reply	other threads:[~2012-09-26 11:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348658966-19944-1-git-send-email-w.sang@pengutronix.de \
    --to=w.sang@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox