Merge pull request #1292 from ffainelli/ethtool
ethtool: Add option to enable/disable pretty-printing
This commit is contained in:
commit
17f428fca6
2 changed files with 20 additions and 1 deletions
7
net/ethtool/Config.in
Normal file
7
net/ethtool/Config.in
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
menu "Configuration"
|
||||||
|
depends on PACKAGE_ethtool
|
||||||
|
|
||||||
|
config ETHTOOL_PRETTY_DUMP
|
||||||
|
bool "Enable pretty printing"
|
||||||
|
|
||||||
|
endmenu
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ethtool
|
PKG_NAME:=ethtool
|
||||||
PKG_VERSION:=3.18
|
PKG_VERSION:=3.18
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
|
PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
|
@ -23,6 +23,8 @@ PKG_FIXUP:=autoreconf
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS:=ETHTOOL_PRETTY_DUMP
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/ethtool
|
define Package/ethtool
|
||||||
|
@ -37,6 +39,16 @@ define Package/ethtool/description
|
||||||
network interface
|
network interface
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/ethtool/config
|
||||||
|
source "$(SOURCE)/Config.in
|
||||||
|
endef
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ETHTOOL_PRETTY_DUMP),y)
|
||||||
|
CONFIGURE_ARGS += --enable-pretty-dump
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS += --disable-pretty-dump
|
||||||
|
endif
|
||||||
|
|
||||||
define Package/ethtool/install
|
define Package/ethtool/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
|
||||||
|
|
Loading…
Reference in a new issue