2006-06-23 08:52:33 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hdparm
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-06-23 15:43:39 +02:00
|
|
|
HDPARM_VERSION:=7.6
|
2006-11-17 17:01:05 +01:00
|
|
|
HDPARM_SOURCE:=hdparm-$(HDPARM_VERSION).tar.gz
|
2006-06-23 08:52:33 +02:00
|
|
|
HDPARM_SITE:=http://www.ibiblio.org/pub/Linux/system/hardware/
|
2006-10-01 17:17:52 +02:00
|
|
|
HDPARM_CAT:=$(ZCAT)
|
2006-11-17 17:01:05 +01:00
|
|
|
HDPARM_DIR:=$(BUILD_DIR)/hdparm-$(HDPARM_VERSION)
|
2006-06-23 08:52:33 +02:00
|
|
|
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) -
|
2007-07-20 16:37:48 +02:00
|
|
|
toolchain/patch-kernel.sh $(HDPARM_DIR) package/hdparm hdparm.patch
|
2006-06-23 08:52:33 +02:00
|
|
|
touch $(HDPARM_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(HDPARM_DIR)/.configured: $(HDPARM_DIR)/.unpacked
|
|
|
|
touch $(HDPARM_DIR)/.configured
|
|
|
|
|
|
|
|
$(HDPARM_DIR)/$(HDPARM_BINARY): $(HDPARM_DIR)/.configured
|
2007-07-20 16:37:48 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(HDPARM_DIR)
|
2006-06-23 08:52:33 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(HDPARM_TARGET_BINARY): $(HDPARM_DIR)/$(HDPARM_BINARY)
|
2007-07-20 16:37:48 +02:00
|
|
|
rm -f $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
|
2006-06-23 08:52:33 +02:00
|
|
|
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
|