mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
Add iostat, ltt, xfsprogs, and memtester
This commit is contained in:
7
package/iostat/Config.in
Normal file
7
package/iostat/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_IOSTAT
|
||||
bool "iostat"
|
||||
default n
|
||||
help
|
||||
An I/O performance monitoring utility.
|
||||
|
||||
http://linux.inet.hr/
|
||||
46
package/iostat/iostat.mk
Normal file
46
package/iostat/iostat.mk
Normal file
@@ -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
|
||||
11
package/iostat/iostat.patch
Normal file
11
package/iostat/iostat.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- iostat-2.2/iostat.c.orig 2005-02-14 12:44:03.000000000 -0800
|
||||
+++ iostat-2.2/iostat.c 2005-03-10 15:24:09.000000000 -0800
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
handle_error("Can't open /proc/cpuinfo", !ncpufp);
|
||||
while (fgets(buffer, sizeof(buffer), ncpufp)) {
|
||||
- if (!strncmp(buffer, "processor\t:", 11))
|
||||
+ if (!strncmp(buffer, "processor\t", 10))
|
||||
ncpu++;
|
||||
}
|
||||
fclose(ncpufp);
|
||||
Reference in New Issue
Block a user