ethtool: Allow enabling/disabling pretty printing

Ethtool has a configure script option allowing the enabling or disabling of
pretty printing for drivers, SFP modules etc which can save a significant
amount of bytes on the root filesystem. Allow selecting that, and turn it on by
default (like ethtool's configure script).

[Peter: fix Config.in indentation/style]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Florian Fainelli 2017-11-05 17:29:06 -08:00 committed by Peter Korsgaard
parent 10b9c36078
commit b17351661b
2 changed files with 10 additions and 0 deletions

View file

@ -5,3 +5,11 @@ config BR2_PACKAGE_ETHTOOL
ethernet-based network interface.
https://www.kernel.org/pub/software/network/ethtool/
config BR2_PACKAGE_ETHTOOL_PRETTY_PRINT
bool "enable pretty printing"
default y
depends on BR2_PACKAGE_ETHTOOL
help
Enables ethtool's pretty printing for drivers
and SFP modules.

View file

@ -9,5 +9,7 @@ ETHTOOL_SOURCE = ethtool-$(ETHTOOL_VERSION).tar.xz
ETHTOOL_SITE = $(BR2_KERNEL_MIRROR)/software/network/ethtool
ETHTOOL_LICENSE = GPL-2.0
ETHTOOL_LICENSE_FILES = COPYING
ETHTOOL_CONF_OPTS = \
$(if $(BR2_PACKAGE_ETHTOOL_PRETTY_PRINT),--enable-pretty-dump,--disable-pretty-dump)
$(eval $(autotools-package))