* [ptxdist] [PATCH] dt (data test program): add package
@ 2012-09-26 11:29 Wolfram Sang
0 siblings, 0 replies; only message in thread
From: Wolfram Sang @ 2012-09-26 11:29 UTC (permalink / raw)
To: ptxdist; +Cc: Wolfram Sang
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-26 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26 11:29 [ptxdist] [PATCH] dt (data test program): add package Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox