svn commit: trunk/buildroot/package: hdparm

andersen at uclibc.org andersen at uclibc.org
Fri Jun 23 06:52:35 UTC 2006


Author: andersen
Date: 2006-06-22 23:52:33 -0700 (Thu, 22 Jun 2006)
New Revision: 15486

Log:
patch from John Gatewood Ham, add hdparm


Added:
   trunk/buildroot/package/hdparm/
   trunk/buildroot/package/hdparm/Config.in
   trunk/buildroot/package/hdparm/hdparm.mk

Modified:
   trunk/buildroot/package/Config.in


Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in	2006-06-23 01:22:45 UTC (rev 15485)
+++ trunk/buildroot/package/Config.in	2006-06-23 06:52:33 UTC (rev 15486)
@@ -51,6 +51,7 @@
 source "package/gettext/Config.in"
 source "package/gzip/Config.in"
 source "package/haserl/Config.in"
+source "package/hdparm/Config.in"
 source "package/hostap/Config.in"
 source "package/hotplug/Config.in"
 source "package/iostat/Config.in"

Added: trunk/buildroot/package/hdparm/Config.in
===================================================================
--- trunk/buildroot/package/hdparm/Config.in	2006-06-23 01:22:45 UTC (rev 15485)
+++ trunk/buildroot/package/hdparm/Config.in	2006-06-23 06:52:33 UTC (rev 15486)
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HDPARM
+	bool "hdparm"
+	default y
+	help
+	  hdparm - get/set hard disk parameters for Linux IDE drives.
+
+	  http://www.ibiblio.org/pub/Linux/system/hardware/

Added: trunk/buildroot/package/hdparm/hdparm.mk
===================================================================
--- trunk/buildroot/package/hdparm/hdparm.mk	2006-06-23 01:22:45 UTC (rev 15485)
+++ trunk/buildroot/package/hdparm/hdparm.mk	2006-06-23 06:52:33 UTC (rev 15486)
@@ -0,0 +1,48 @@
+#############################################################
+#
+# hdparm
+#
+#############################################################
+HDPARM_SOURCE:=hdparm-6.5.tar.gz
+HDPARM_SITE:=http://www.ibiblio.org/pub/Linux/system/hardware/
+HDPARM_CAT:=zcat
+HDPARM_DIR:=$(BUILD_DIR)/hdparm-6.5
+HDPARM_BINARY:=hdparm
+HDPARM_TARGET_BINARY:=sbin/hdparm
+
+$(DL_DIR)/$(HDPARM_SOURCE):
+	 $(WGET) -P $(DL_DIR) $(HDPARM_SITE)/$(HDPARM_SOURCE)
+
+hdparm-source: $(DL_DIR)/$(HDPARM_SOURCE)
+
+hdparm-unpacked: $(HDPARM_DIR)/.unpacked
+$(HDPARM_DIR)/.unpacked: $(DL_DIR)/$(HDPARM_SOURCE)
+	$(HDPARM_CAT) $(DL_DIR)/$(HDPARM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	touch $(HDPARM_DIR)/.unpacked
+
+$(HDPARM_DIR)/.configured: $(HDPARM_DIR)/.unpacked
+	touch $(HDPARM_DIR)/.configured
+
+$(HDPARM_DIR)/$(HDPARM_BINARY): $(HDPARM_DIR)/.configured
+	$(MAKE) CC=$(TARGET_CC) -C $(HDPARM_DIR)
+
+$(TARGET_DIR)/$(HDPARM_TARGET_BINARY): $(HDPARM_DIR)/$(HDPARM_BINARY)
+	cp -a $(HDPARM_DIR)/$(HDPARM_BINARY) $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
+
+hdparm: uclibc $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
+
+hdparm-clean:
+	rm -f $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
+	-$(MAKE) -C $(HDPARM_DIR) clean
+
+hdparm-dirclean:
+	rm -rf $(HDPARM_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_HDPARM)),y)
+TARGETS+=hdparm
+endif




More information about the uClibc-cvs mailing list