From: Florian Fainelli Date: Mon, 6 Nov 2017 01:29:06 +0000 (-0800) Subject: ethtool: Allow enabling/disabling pretty printing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b17351661b241a377f8f696a850d88243eb76dc9;p=buildroot.git 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 Signed-off-by: Peter Korsgaard --- 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))