summaryrefslogtreecommitdiffstats
path: root/rules/dropwatch.make
diff options
context:
space:
mode:
authorAlexander Dahl <post@lespocky.de>2017-06-20 12:44:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-21 10:14:54 +0200
commit967f512eb6e7d3a8758365e1734ea40eb0137b5f (patch)
tree2ed7f9c911cf783c31cff7c99ebd383f88dd7e75 /rules/dropwatch.make
parent5c399086e7694bb4a9295d9dcdfe7467a3329c7a (diff)
downloadptxdist-967f512eb6e7d3a8758365e1734ea40eb0137b5f.tar.gz
ptxdist-967f512eb6e7d3a8758365e1734ea40eb0137b5f.tar.xz
dropwatch: new package
This adds a new package 'dropwatch', a tool for seeing where packets are dropped in the kernel. It was recently moved to a new upstream URL and is currently only available from Git. Included is one patch from buildroot, which is not yet upstream. Tested on an at91sam9g20 platform. Signed-off-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dropwatch.make')
-rw-r--r--rules/dropwatch.make66
1 files changed, 66 insertions, 0 deletions
diff --git a/rules/dropwatch.make b/rules/dropwatch.make
new file mode 100644
index 000000000..801515821
--- /dev/null
+++ b/rules/dropwatch.make
@@ -0,0 +1,66 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Alexander Dahl <post@lespocky.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DROPWATCH) += dropwatch
+
+#
+# Paths and names
+#
+# No tags: use a fake descriptive commit-ish to include the date
+DROPWATCH_VERSION := 2015-07-06-g7c33d8a
+DROPWATCH_MD5 := c4164e9f96bb5c0b801047685ed09ea5
+DROPWATCH := dropwatch-$(DROPWATCH_VERSION)
+DROPWATCH_SUFFIX := tar.gz
+DROPWATCH_URL := git://git.infradead.org/users/nhorman/dropwatch.git;tag=$(DROPWATCH_VERSION)
+DROPWATCH_SOURCE := $(SRCDIR)/$(DROPWATCH).$(DROPWATCH_SUFFIX)
+DROPWATCH_DIR := $(BUILDDIR)/$(DROPWATCH)
+DROPWATCH_LICENSE := GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+DROPWATCH_CONF_TOOL := NO
+DROPWATCH_MAKE_ENV := $(CROSS_ENV)
+DROPWATCH_MAKE_OPT := build
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dropwatch.install:
+ @$(call targetinfo)
+ install -D -m 0755 $(DROPWATCH_DIR)/src/dropwatch \
+ $(DROPWATCH_PKGDIR)/usr/bin/dropwatch
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dropwatch.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, dropwatch)
+ @$(call install_fixup, dropwatch,PRIORITY,optional)
+ @$(call install_fixup, dropwatch,SECTION,base)
+ @$(call install_fixup, dropwatch,AUTHOR,"Alexander Dahl <post@lespocky.de>")
+ @$(call install_fixup, dropwatch,DESCRIPTION,missing)
+
+ @$(call install_copy, dropwatch, 0, 0, 0755, -, /usr/bin/dropwatch)
+
+ @$(call install_finish, dropwatch)
+
+ @$(call touch)
+
+# vim: ft=make noet