2005-09-30 22:41:41 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iostat
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
IOSTAT_VERSION:=2.2
|
|
|
|
IOSTAT_SOURCE:=iostat-$(IOSTAT_VERSION).tar.gz
|
2006-12-15 15:05:51 +01:00
|
|
|
IOSTAT_SITE:=http://linux.inet.hr/files
|
2007-07-11 16:06:06 +02:00
|
|
|
IOSTAT_DIR:=$(BUILD_DIR)/iostat-$(IOSTAT_VERSION)
|
2005-09-30 22:41:41 +02:00
|
|
|
IOSTAT_BINARY:=iostat
|
|
|
|
IOSTAT_TARGET_BINARY:=usr/bin/iostat
|
|
|
|
|
|
|
|
$(DL_DIR)/$(IOSTAT_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(IOSTAT_SITE),$(IOSTAT_SOURCE))
|
2005-09-30 22:41:41 +02:00
|
|
|
|
|
|
|
iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE)
|
|
|
|
|
|
|
|
$(IOSTAT_DIR)/.unpacked: $(DL_DIR)/$(IOSTAT_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(IOSTAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-09-30 22:41:41 +02:00
|
|
|
toolchain/patch-kernel.sh $(IOSTAT_DIR) package/iostat/ iostat\*.patch
|
|
|
|
touch $(IOSTAT_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(IOSTAT_DIR)/$(IOSTAT_BINARY): $(IOSTAT_DIR)/.unpacked
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(IOSTAT_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(IOSTAT_DIR)/$(IOSTAT_BINARY)
|
2005-09-30 22:41:41 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(IOSTAT_TARGET_BINARY): $(IOSTAT_DIR)/$(IOSTAT_BINARY)
|
|
|
|
$(INSTALL) -m 0755 -D $(IOSTAT_DIR)/$(IOSTAT_BINARY) $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY)
|
|
|
|
|
|
|
|
iostat: uclibc $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY)
|
|
|
|
|
|
|
|
iostat-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(IOSTAT_DIR) clean
|
|
|
|
|
|
|
|
iostat-dirclean:
|
|
|
|
rm -rf $(IOSTAT_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IOSTAT),y)
|
2005-09-30 22:41:41 +02:00
|
|
|
TARGETS+=iostat
|
|
|
|
endif
|