procrank_linux: new package
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Tue, 23 Feb 2016 15:54:48 +0000 (12:54 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Mar 2016 15:12:03 +0000 (16:12 +0100)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
[Thomas: add hash file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/procrank_linux/Config.in [new file with mode: 0644]
package/procrank_linux/procrank_linux.hash [new file with mode: 0644]
package/procrank_linux/procrank_linux.mk [new file with mode: 0644]

index f02be444e38b359be381dba00af14baf4248884e..12cf5d632b243a326879440eba2b232c59d68857 100644 (file)
@@ -1625,6 +1625,9 @@ endif
        source "package/powerpc-utils/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        source "package/procps-ng/Config.in"
+endif
+       source "package/procrank_linux/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        source "package/psmisc/Config.in"
 endif
        source "package/pwgen/Config.in"
diff --git a/package/procrank_linux/Config.in b/package/procrank_linux/Config.in
new file mode 100644 (file)
index 0000000..59d462b
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PROCRANK_LINUX
+       bool "procrank_linux"
+       help
+         procrank is a tool commonly used by Android platform
+         developers to find out how much memory is really being used.
+
+         https://github.com/csimmonds/procrank_linux
diff --git a/package/procrank_linux/procrank_linux.hash b/package/procrank_linux/procrank_linux.hash
new file mode 100644 (file)
index 0000000..b28a8e3
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 1c3592b549b6793b29ab561568f493d0edbfe288ea2aed59afa689eaa26b5d9e procrank_linux-21c30ab4514a5b15ac6e813e21bee0d3d714cb08.tar.gz
diff --git a/package/procrank_linux/procrank_linux.mk b/package/procrank_linux/procrank_linux.mk
new file mode 100644 (file)
index 0000000..7e74319
--- /dev/null
@@ -0,0 +1,21 @@
+################################################################################
+#
+# procrank_linux
+#
+################################################################################
+
+PROCRANK_LINUX_VERSION = 21c30ab4514a5b15ac6e813e21bee0d3d714cb08
+PROCRANK_LINUX_SITE = $(call github,csimmonds,procrank_linux,$(PROCRANK_LINUX_VERSION))
+PROCRANK_LINUX_LICENSE = Apache-2.0
+PROCRANK_LINUX_LICENSE_FILES = NOTICE
+
+define PROCRANK_LINUX_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE="$(TARGET_CROSS)"
+endef
+
+define PROCRANK_LINUX_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 -D $(@D)/procrank \
+               $(TARGET_DIR)/usr/bin/procrank
+endef
+
+$(eval $(generic-package))