Browse Source

Merge pull request #16112 from dmascord/add_mdio-tools

mdio-tools: add package plus kernel module
lilik-openwrt-22.03
Michael Heimpold 3 years ago
committed by GitHub
parent
commit
50500bddda
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 77 additions and 0 deletions
  1. +39
    -0
      kernel/mdio-netlink/Makefile
  2. +38
    -0
      net/mdio-tools/Makefile

+ 39
- 0
kernel/mdio-netlink/Makefile View File

@ -0,0 +1,39 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mdio-netlink
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-07-19
PKG_SOURCE_VERSION:=65f6898f25b00deebe1c38811e893d9dcd4d7ef3
PKG_MIRROR_HASH:=c1532381ac7954a4dbff97f04e7ff2c66cc09dce420458fd3f830c843714616b
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Damien Mascord <tusker@tusker.org>
include $(INCLUDE_DIR)/package.mk
define KernelPackage/mdio-netlink
SECTION:=kernel
CATEGORY:=Kernel modules
SUBMENU:=Network Support
TITLE:=mdio-netlink Linux MDIO netlink kernel module
KCONFIG:=CONFIG_PHYLIB=y CONFIG_MDIO_BUS=y
URL:=https://github.com/wkz/mdio-tools.git
FILES:=$(PKG_BUILD_DIR)/kernel/mdio-netlink.ko
AUTOLOAD:=$(call AutoProbe,mdio-netlink)
endef
define KernelPackage/mdio-netlink/description
mdio-netlink Linux MDIO netlink kernel module
endef
define Build/Compile
$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/kernel modules
endef
$(eval $(call KernelPackage,mdio-netlink))

+ 38
- 0
net/mdio-tools/Makefile View File

@ -0,0 +1,38 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mdio-tools
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-07-19
PKG_SOURCE_VERSION:=65f6898f25b00deebe1c38811e893d9dcd4d7ef3
PKG_MIRROR_HASH:=9db854037b3e8596ccd71567a45aa60fd3cac88b01c9197d4dd9cf3f32589cb2
PKG_FIXUP:=autoreconf
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Damien Mascord <tusker@tusker.org>
include $(INCLUDE_DIR)/package.mk
define Package/mdio-tools
SECTION:=net
CATEGORY:=Utilities
TITLE:=mdio-tools Linux MDIO register access
URL:=https://github.com/wkz/mdio-tools.git
DEPENDS:=+libmnl
endef
define Package/mdio-tools/description
mdio-tools Linux MDIO register access
endef
define Package/mdio-tools/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mdio/mdio $(1)/usr/bin/
endef
$(eval $(call BuildPackage,mdio-tools))

Loading…
Cancel
Save