From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Date: Sun, 5 Nov 2017 17:29:06 -0800 Subject: [Buildroot] [PATCH] ethtool: Allow enabling/disabling pretty printing Message-ID: <20171106012906.22000-1-f.fainelli@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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). Signed-off-by: Florian Fainelli --- package/ethtool/Config.in | 10 ++++++++++ package/ethtool/ethtool.mk | 2 ++ 2 files changed, 12 insertions(+) diff --git a/package/ethtool/Config.in b/package/ethtool/Config.in index 09704979e864..77795a838971 100644 --- a/package/ethtool/Config.in +++ b/package/ethtool/Config.in @@ -5,3 +5,13 @@ config BR2_PACKAGE_ETHTOOL ethernet-based network interface. https://www.kernel.org/pub/software/network/ethtool/ + +if BR2_PACKAGE_ETHTOOL + + config BR2_PACKAGE_ETHTOOL_PRETTY_PRINT + bool "enable pretty printing" + default y + help + Enables ethtool's pretty printing for drivers + and SFP modules. +endif diff --git a/package/ethtool/ethtool.mk b/package/ethtool/ethtool.mk index 991df499a8fd..d8ebba5fae05 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)) -- 2.14.1