summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2008-06-30 08:08:36 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2008-06-30 08:08:36 +0000
commit5a59be1fe09edc59f179ad2fae3eb1c43678509b (patch)
tree8ce78c55fd6a4b69beae1b6fac6965e2dac28fb3
parent8ce1c4763aa53852af7adcb21355bed61455eed4 (diff)
downloadptxdist-5a59be1fe09edc59f179ad2fae3eb1c43678509b.tar.gz
ptxdist-5a59be1fe09edc59f179ad2fae3eb1c43678509b.tar.xz
sdparm tool added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8552 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/Kconfig1
-rw-r--r--rules/sdparm.in9
-rw-r--r--rules/sdparm.make117
3 files changed, 127 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig
index 68b412e36..341a286df 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -106,6 +106,7 @@ source "rules/e2fsprogs.in"
source "rules/fam.in"
source "rules/fuse.in"
source "rules/hdparm.in"
+source "rules/sdparm.in"
source "rules/ipkg.in"
source "rules/liblockfile.in"
source "rules/logrotate.in"
diff --git a/rules/sdparm.in b/rules/sdparm.in
new file mode 100644
index 000000000..1a4ac3206
--- /dev/null
+++ b/rules/sdparm.in
@@ -0,0 +1,9 @@
+config SDPARM
+ tristate
+ prompt "sdparm"
+ help
+ The sdparm utility accesses SCSI device parameters. When the SCSI
+ device is a disk, sdparm's role is similar to its namesake: the
+ Linux hdparm utility which is primarily designed for ATA disks that
+ had device names starting with "hd".
+ More at: http://sg.torque.net/sg/sdparm.html#mozTocId812196
diff --git a/rules/sdparm.make b/rules/sdparm.make
new file mode 100644
index 000000000..9b3ba07cb
--- /dev/null
+++ b/rules/sdparm.make
@@ -0,0 +1,117 @@
+# -*-makefile-*-
+# $Id: template-make 8509 2008-06-12 12:45:40Z mkl $
+#
+# Copyright (C) 2008 by Juergen Beisert
+#
+# 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_SDPARM) += sdparm
+
+#
+# Paths and names
+#
+SDPARM_VERSION := 1.03
+SDPARM := sdparm-$(SDPARM_VERSION)
+SDPARM_SUFFIX := tgz
+SDPARM_URL := http://sg.torque.net/sg/p/$(SDPARM).$(SDPARM_SUFFIX)
+SDPARM_SOURCE := $(SRCDIR)/$(SDPARM).$(SDPARM_SUFFIX)
+SDPARM_DIR := $(BUILDDIR)/$(SDPARM)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SDPARM_SOURCE):
+ @$(call targetinfo)
+ @$(call get, SDPARM)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdparm.extract:
+ @$(call targetinfo)
+ @$(call clean, $(SDPARM_DIR))
+ @$(call extract, SDPARM)
+ @$(call patchin, SDPARM)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDPARM_PATH := PATH=$(CROSS_PATH)
+SDPARM_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+SDPARM_AUTOCONF := $(CROSS_AUTOCONF_USR) \
+ --disable-dependency-tracking
+
+$(STATEDIR)/sdparm.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(SDPARM_DIR)/config.cache)
+ cd $(SDPARM_DIR) && \
+ $(SDPARM_PATH) $(SDPARM_ENV) \
+ ./configure $(SDPARM_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdparm.compile:
+ @$(call targetinfo)
+ cd $(SDPARM_DIR) && $(SDPARM_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdparm.install:
+ @$(call targetinfo)
+ @$(call install, SDPARM)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdparm.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, sdparm)
+ @$(call install_fixup, sdparm,PACKAGE,sdparm)
+ @$(call install_fixup, sdparm,PRIORITY,optional)
+ @$(call install_fixup, sdparm,VERSION,$(SDPARM_VERSION))
+ @$(call install_fixup, sdparm,SECTION,base)
+ @$(call install_fixup, sdparm,AUTHOR,"Juergen Beisert <j.beisert\@pengutronix.de>")
+ @$(call install_fixup, sdparm,DEPENDS,)
+ @$(call install_fixup, sdparm,DESCRIPTION,missing)
+
+ @$(call install_copy, sdparm, 0, 0, 0755, $(SDPARM_DIR)/src/sdparm, \
+ /usr/bin/sdparm)
+
+ @$(call install_finish, sdparm)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+sdparm_clean:
+ rm -rf $(STATEDIR)/sdparm.*
+ rm -rf $(PKGDIR)/sdparm_*
+ rm -rf $(SDPARM_DIR)
+
+# vim: syntax=make