diff --git a/make/archives.mk b/make/archives.mk index 31d832e9..cb8e8f84 100644 --- a/make/archives.mk +++ b/make/archives.mk @@ -377,5 +377,10 @@ ALSA-LIB_SOURCE = alsa-lib-$(ALSA-LIB_VER).tar.bz2 $(ARCHIVE)/$(ALSA-LIB_SOURCE): $(WGET) ftp://ftp.alsa-project.org/pub/lib/$(ALSA-LIB_SOURCE) +ETHTOOL_VER = 4.13 +ETHTOOL_SOURCE = ethtool-$(ETHTOOL_VER).tar.xz +$(ARCHIVE)/$(ETHTOOL_SOURCE): + $(WGET) https://www.kernel.org/pub/software/network/ethtool/$(ETHTOOL_SOURCE) + $(ARCHIVE)/cacert.pem: $(WGET) https://curl.haxx.se/ca/cacert.pem diff --git a/make/ni.mk b/make/ni.mk index 669b050b..0966aad3 100644 --- a/make/ni.mk +++ b/make/ni.mk @@ -82,6 +82,7 @@ ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd2 hd51)) make -j$(NUM_CPUS) parted make -j$(NUM_CPUS) openvpn make -j$(NUM_CPUS) openssh + make -j$(NUM_CPUS) ethtool ifneq ($(BOXMODEL), kronos_v2) make -j$(NUM_CPUS) bash make -j$(NUM_CPUS) iperf diff --git a/make/system-tools.mk b/make/system-tools.mk index 3d3f88f3..37fdb269 100644 --- a/make/system-tools.mk +++ b/make/system-tools.mk @@ -1006,6 +1006,22 @@ $(D)/dvbsnoop: | $(TARGET_DIR) $(REMOVE)/dvbsnoop touch $@ +$(D)/ethtool: $(ARCHIVE)/$(ETHTOOL_SOURCE) | $(TARGET_DIR) + $(REMOVE)/ethtool-$(ETHTOOL_VER) + $(UNTAR)/$(ETHTOOL_SOURCE) + set -e; cd $(BUILD_TMP)/ethtool-$(ETHTOOL_VER); \ + $(CONFIGURE) \ + --prefix=/usr \ + --mandir=/.remove \ + --bindir=/bin \ + --sbindir=/sbin \ + --libdir=$(TARGET_LIB_DIR) \ + ; \ + $(MAKE); \ + $(MAKE) install DESTDIR=$(TARGET_DIR) + $(REMOVE)/ethtool-$(ETHTOOL_VER) + touch $@ + $(D)/ca-bundle: $(ARCHIVE)/cacert.pem | $(TARGET_DIR) install -D -m 644 $(ARCHIVE)/cacert.pem $(TARGET_DIR)/$(CA_BUNDLE_DIR)/$(CA_BUNDLE) touch $@