From b17351661b241a377f8f696a850d88243eb76dc9 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 5 Nov 2017 17:29:06 -0800 Subject: [PATCH] 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 --- package/ethtool/Config.in | 8 ++++++++ package/ethtool/ethtool.mk | 2 ++ 2 files changed, 10 insertions(+) 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)) -- 2.30.2