phytool: new package
PATCH 1/2 phytool: new package
From: Yegor Yefremov <[email protected]>
--- package/Config.in | 1 + package/phytool/Config.in | 6 ++++++ package/phytool/phytool.hash | 2 ++ package/phytool/phytool.mk | 22 ++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 package/phytool/Config.in create mode 100644 package/phytool/phytool.hash create mode 100644 package/phytool/phytool.mk
package/Config.in +1 -0
@@ -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
@@ -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 +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 a002712580ba57e0216e5b984a52322b6b2f0bbb029bc79ebe73a6ee9f2a19bb phytool-3149bfdb4f513e2f0da0a7d0bc5d0873578696f2.tar.gz
package/phytool/phytool.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# phytool +# +################################################################################ + +PHYTOOL_VERSION = 3149bfdb4f513e2f0da0a7d0bc5d0873578696f2 +PHYTOOL_SITE = $(call github,wkz,phytool,$(PHYTOOL_VERSION)) +PHYTOOL_LICENSE = GPL-2.0 +PHYTOOL_LICENSE_FILES = LICENSE + +define PHYTOOL_BUILD_CMDS + $(TARGET_MAKE_ENV) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(@D) +endef + +define PHYTOOL_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" \ + PREFIX="usr" install +endef + +$(eval $(generic-package))
Signature · 1 line
2.11.0
PATCH 2/2 DEVELOPERS: add entry for phytool
From: Yegor Yefremov <[email protected]>
--- DEVELOPERS | 1 + 1 file changed, 1 insertion(+)
DEVELOPERS +1 -0
@@ -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/
Signature · 1 line
2.11.0
PATCH 1/2 phytool: new package
In reply to yegorslists at googlemail.comOn 12-04-17 14:16, yegorslists at googlemail.com wrote:
[snip]
Quoted 6 lines
package/phytool/phytool.mk new file +0
-0
package/phytool/phytool.mk line 8
Quoted 8 lines
package/phytool/phytool.mk new file +8
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# phytool +# +################################################################################ + +PHYTOOL_VERSION = 3149bfdb4f513e2f0da0a7d0bc5d0873578696f2 +PHYTOOL_SITE = $(call github,wkz,phytool,$(PHYTOOL_VERSION))
There's an uploaded tarball including md5 sum of v1.0.1. There is only one
commit difference, and htat just adds LDFLAGS support. But that can be overcome by using LDLIBS instead of LDFLAGS.
package/phytool/phytool.mk line 9
Quoted 1 line
package/phytool/phytool.mk new file +1
-0+PHYTOOL_LICENSE = GPL-2.0
I see GPL-2.0+ in all source files, did I miss anything?
package/phytool/phytool.mk line 14
Quoted 5 lines
package/phytool/phytool.mk new file +5
-0+PHYTOOL_LICENSE_FILES = LICENSE + +define PHYTOOL_BUILD_CMDS + $(TARGET_MAKE_ENV) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) -C $(@D)
We prefer using TARGET_CONF_OPTS, like
$(TARGET_MAKE_ENV) $(TARGET_CONF_OPTS) $(MAKE) -C $(@D) \ LDLIBS="$(TARGET_LDFLAGS)"
package/phytool/phytool.mk line 19
Quoted 5 lines
package/phytool/phytool.mk new file +5
-0+endef + +define PHYTOOL_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" \ + PREFIX="usr" install
We also generally prefer to use as much as possible the same command line for
the install commands, so including the extra flags.
Regards,
Arnout
Quoted 4 lines
package/phytool/phytool.mk new file +3
-0+endef + +$(eval $(generic-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/2 phytool: new package
In reply to yegorslists at googlemail.comHello,
Quoted 12 lines · yegorslists at googlemail.com
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>--- package/Config.in | 1 + package/phytool/Config.in | 6 ++++++ package/phytool/phytool.hash | 2 ++ package/phytool/phytool.mk | 22 ++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 package/phytool/Config.in create mode 100644 package/phytool/phytool.hash create mode 100644 package/phytool/phytool.mk
Following Arnout comments, I've marked your patch as Changes Requested in patchwork. Also, please merge PATCH 2/2 into PATCH 1/2, the change to the DEVELOPERS should now be done in the patch adding the package.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com