source: packages/utils/dt/Makefile @ 14340

Last change on this file since 14340 was 14340, checked in by nico, 8 years ago

[packages] add dt, a generic data test program (closes: #2167)

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=dt
12PKG_VERSION:=15.14
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-source.tar.gz
16PKG_SOURCE_URL:=http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/$(PKG_NAME)/
17PKG_MD5SUM:=5776233a2d301a50b314306538257a45
18
19PKG_UNPACK= \
20        zcat $(DL_DIR)/$(PKG_SOURCE) | \
21                $(TAR) -C $(PKG_BUILD_DIR) --strip-components 2 $(TAR_OPTIONS);
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/dt
26  CATEGORY:=Utilities
27  SECTION:=utils
28  TITLE:=A generic data test program
29  URL:=http://www.scsifaq.org/RMiller_Tools/index.html
30  DEPENDS:=+libpthread
31endef
32
33define Package/dt/description
34 dt is a generic data test program used to verify proper operation of peripherals,
35 file systems, device drivers, or any data stream supported by the operating system.
36 In its' simplest mode of operation, dt writes and then verifys its' default data pattern,
37 then displays performance statisics and other test parameters before exiting.
38 Since verification of data is performed, dt can be thought of as a generic diagnostic tool.
39endef
40
41define Build/Compile
42        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
43                CC="$(TARGET_CC)" \
44                CFLAGS="$(TARGET_CFLAGS) -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
45                dt
46endef
47
48define Package/dt/install
49        $(INSTALL_DIR) $(1)/usr/bin
50        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dt $(1)/usr/bin/
51endef
52
53$(eval $(call BuildPackage,dt))
Note: See TracBrowser for help on using the repository browser.