summaryrefslogtreecommitdiffstats
path: root/package/phytool
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2017-04-13 11:33:20 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-13 21:30:33 +0200
commit139d47e1f915fbb9826ff3db75c84c5e19d830c4 (patch)
tree2f3d4266b9abc5e099c9c98d155892fc213f745b /package/phytool
parenta81ec97cfd1d0f1d1c73ff206675a072a4ece6b5 (diff)
downloadbuildroot-139d47e1f915fbb9826ff3db75c84c5e19d830c4.tar.gz
buildroot-139d47e1f915fbb9826ff3db75c84c5e19d830c4.zip
phytool: new package
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/phytool')
-rw-r--r--package/phytool/Config.in6
-rw-r--r--package/phytool/phytool.hash4
-rw-r--r--package/phytool/phytool.mk24
3 files changed, 34 insertions, 0 deletions
diff --git a/package/phytool/Config.in b/package/phytool/Config.in
new file mode 100644
index 0000000000..7dca31dda2
--- /dev/null
+++ b/package/phytool/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PHYTOOL
+ bool "phytool"
+ help
+ Linux MDIO register access utility.
+
+ https://github.com/wkz/phytool
diff --git a/package/phytool/phytool.hash b/package/phytool/phytool.hash
new file mode 100644
index 0000000000..37d8f6675f
--- /dev/null
+++ b/package/phytool/phytool.hash
@@ -0,0 +1,4 @@
+# md5 from https://github.com/wkz/phytool/releases/download/v1.0.1/phytool-1.0.1.tar.xz.md5
+# sha256 locally computed:
+md5 08997ad8f01faf84f3da0638f3ad8b16 phytool-1.0.1.tar.xz
+sha256 b08c538dc8024e542d54742b93cc7748c7062477f060d6e9331a67009aeadd88 phytool-1.0.1.tar.xz
diff --git a/package/phytool/phytool.mk b/package/phytool/phytool.mk
new file mode 100644
index 0000000000..2a47dfa570
--- /dev/null
+++ b/package/phytool/phytool.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# phytool
+#
+################################################################################
+
+PHYTOOL_VERSION = 1.0.1
+PHYTOOL_SOURCE = phytool-$(PHYTOOL_VERSION).tar.xz
+PHYTOOL_SITE = https://github.com/wkz/phytool/releases/download/v$(PHYTOOL_VERSION)
+PHYTOOL_LICENSE = GPL-2.0+
+PHYTOOL_LICENSE_FILES = LICENSE
+
+define PHYTOOL_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ LDLIBS="$(TARGET_LDFLAGS)"
+endef
+
+define PHYTOOL_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ DESTDIR="$(TARGET_DIR)" \
+ PREFIX="usr" install
+endef
+
+$(eval $(generic-package))
OpenPOWER on IntegriCloud