diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-11-05 17:29:06 -0800 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2017-11-06 09:50:51 +0100 |
commit | b17351661b241a377f8f696a850d88243eb76dc9 (patch) | |
tree | 48f253b3b13e0ebd483736943444725f5b354127 | |
parent | 10b9c36078ba7467f9a040c6b74a9402b9fd5a2d (diff) | |
download | buildroot-b17351661b241a377f8f696a850d88243eb76dc9.tar.gz buildroot-b17351661b241a377f8f696a850d88243eb76dc9.zip |
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>
-rw-r--r-- | package/ethtool/Config.in | 8 | ||||
-rw-r--r-- | package/ethtool/ethtool.mk | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/package/ethtool/Config.in b/package/ethtool/Config.in index 09704979e8..48173bfe2e 100644 --- a/package/ethtool/Config.in +++ b/package/ethtool/Config.in @@ -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. diff --git a/package/ethtool/ethtool.mk b/package/ethtool/ethtool.mk index 991df499a8..d8ebba5fae 100644 --- a/package/ethtool/ethtool.mk +++ b/package/ethtool/ethtool.mk @@ -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)) |