diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-09-30 20:41:41 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-09-30 20:41:41 +0000 |
commit | f2a5ce4b9da5940604061294b2414e6d163ffc7b (patch) | |
tree | 2ad774b7cc900b93e52c025daee97a9c6beaf23a /package/iostat/iostat.mk | |
parent | 6628d4b2f68bdc61ac7e328c0d27b9affb43b4f0 (diff) |
Add iostat, ltt, xfsprogs, and memtester
Diffstat (limited to 'package/iostat/iostat.mk')
-rw-r--r-- | package/iostat/iostat.mk | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/package/iostat/iostat.mk b/package/iostat/iostat.mk new file mode 100644 index 000000000..0c6042c37 --- /dev/null +++ b/package/iostat/iostat.mk @@ -0,0 +1,46 @@ +############################################################# +# +# iostat +# +############################################################# +IOSTAT_VER:=2.2 +IOSTAT_SOURCE:=iostat-$(IOSTAT_VER).tar.gz +IOSTAT_SITE:=http://linux.inet.hr +IOSTAT_DIR:=$(BUILD_DIR)/iostat-$(IOSTAT_VER) +IOSTAT_BINARY:=iostat +IOSTAT_TARGET_BINARY:=usr/bin/iostat + +$(DL_DIR)/$(IOSTAT_SOURCE): + $(WGET) -P $(DL_DIR) $(IOSTAT_SITE)/$(IOSTAT_SOURCE) + +iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE) + +$(IOSTAT_DIR)/.unpacked: $(DL_DIR)/$(IOSTAT_SOURCE) + zcat $(DL_DIR)/$(IOSTAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + 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) + $(STRIP) $(IOSTAT_DIR)/$(IOSTAT_BINARY) + +$(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 +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_IOSTAT)),y) +TARGETS+=iostat +endif |