Skip to contentSkip to conversation

phytool: new package

PATCH New yegorslists at googlemail.com 2 participants 2 messages Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 phytool: new package

From: Yegor Yefremov <[email protected]>

---
Changes v1 -> v2:
- fix licence (Arnout Vandecappelle)
- use upstream tarball (Arnout Vandecappelle)
- use TARGET_CONFIGURE_OPTS in both build and install steps (Arnout Vandecappelle)
- squash DEVELOPERS patch (Thomas Petazzoni)

 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/phytool/Config.in    |  6 ++++++
 package/phytool/phytool.hash |  4 ++++
 package/phytool/phytool.mk   | 24 ++++++++++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 package/phytool/Config.in
 create mode 100644 package/phytool/phytool.hash
 create mode 100644 package/phytool/phytool.mk
DEVELOPERS +1 -0
index a298669ab..e4582b615 100644
@@ -1739,6 +1739,7 @@ F:	package/linux-firmware/
 F:	package/modem-manager/
 F:	package/nuttcp/
 F:	package/parted/
+F:	package/phytool/
 F:	package/python*
 F:	package/ser2net/
 F:	package/socketcand/
package/Config.in +1 -0
index c12e5b56f..bdad62267 100644
@@ -1639,6 +1639,7 @@ endif
 	source "package/openvpn/Config.in"
 	source "package/p910nd/Config.in"
 	source "package/phidgetwebservice/Config.in"
+	source "package/phytool/Config.in"
 	source "package/pound/Config.in"
 	source "package/pppd/Config.in"
 	source "package/pptp-linux/Config.in"
package/phytool/Config.in new file +6 -0
new file mode 100644
index 000000000..7dca31dda
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PHYTOOL
+	bool "phytool"
+	help
+	  Linux MDIO register access utility.
+
+	  https://github.com/wkz/phytool
package/phytool/phytool.hash new file +4 -0
new file mode 100644
index 000000000..37d8f6675
@@ -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
package/phytool/phytool.mk new file +24 -0
new file mode 100644
index 000000000..2a47dfa57
@@ -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))
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 phytool: new package

Hello,

Quoted 9 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
Changes v1 -> v2:
- fix licence (Arnout Vandecappelle)
- use upstream tarball (Arnout Vandecappelle)
- use TARGET_CONFIGURE_OPTS in both build and install steps (Arnout Vandecappelle)
- squash DEVELOPERS patch (Thomas Petazzoni)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com