mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ethtool: update to v5.13 (#7656)
* ethtool: introduce ethtool-full build variant Netlink support is required for using the virtual cable tester functionality. Remove the pretty print build option and instead create a second package variant ethtool-full. This allows users to install the full ethtool featureset using opkg. Signed-off-by: David Bauer <mail@david-bauer.net> * ethtool: update to v5.13 Signed-off-by: David Bauer <mail@david-bauer.net> * ethtool: fix depends Co-authored-by: David Bauer <mail@david-bauer.net> Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
parent
ed865731cc
commit
339a3a0b07
@ -8,13 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ethtool
|
||||
PKG_VERSION:=5.12
|
||||
PKG_VERSION:=5.13
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@KERNEL/software/network/ethtool
|
||||
PKG_HASH:=f5ddfa9c75053d8011b8c8c99ec4e2d3c83cd1972f638692d62e37fa3ef36f07
|
||||
PKG_HASH:=e63a7254c6cf2e443d9989c8c34a94e136d789ae1cf5da55397439b055e48cf3
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
@ -23,8 +23,6 @@ PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_CONFIG_DEPENDS:=CONFIG_ETHTOOL_PRETTY_DUMP
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/ethtool
|
||||
@ -32,6 +30,15 @@ define Package/ethtool
|
||||
CATEGORY:=Network
|
||||
TITLE:=Display or change ethernet card settings
|
||||
URL:=http://www.kernel.org/pub/software/network/ethtool/
|
||||
VARIANT:=tiny
|
||||
endef
|
||||
|
||||
define Package/ethtool-full
|
||||
$(Package/ethtool)
|
||||
TITLE += (full)
|
||||
VARIANT:=full
|
||||
PROVIDES:=ethtool
|
||||
DEPENDS:=+libmnl
|
||||
endef
|
||||
|
||||
define Package/ethtool/description
|
||||
@ -39,18 +46,12 @@ define Package/ethtool/description
|
||||
network interface
|
||||
endef
|
||||
|
||||
define Package/ethtool/config
|
||||
config ETHTOOL_PRETTY_DUMP
|
||||
depends on PACKAGE_ethtool
|
||||
bool "Enable pretty printing"
|
||||
endef
|
||||
Package/ethtool-full/description:=$(Package/ethtool/description)
|
||||
|
||||
CONFIGURE_ARGS += --disable-netlink
|
||||
|
||||
ifeq ($(CONFIG_ETHTOOL_PRETTY_DUMP),y)
|
||||
CONFIGURE_ARGS += --enable-pretty-dump
|
||||
ifeq ($(BUILD_VARIANT),full)
|
||||
CONFIGURE_ARGS += --enable-netlink --enable-pretty-dump
|
||||
else
|
||||
CONFIGURE_ARGS += --disable-pretty-dump
|
||||
CONFIGURE_ARGS += --disable-netlink --disable-pretty-dump
|
||||
endif
|
||||
|
||||
define Package/ethtool/install
|
||||
@ -58,4 +59,7 @@ define Package/ethtool/install
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
|
||||
endef
|
||||
|
||||
Package/ethtool-full/install=$(Package/ethtool/install)
|
||||
|
||||
$(eval $(call BuildPackage,ethtool))
|
||||
$(eval $(call BuildPackage,ethtool-full))
|
||||
|
Loading…
Reference in New Issue
Block a user