Browse Source

- system-tools: add target to build ethtool; enable ethtool for hd2 and hd51

master
vanhofen 7 years ago
parent
commit
691e9de5f2
  1. 5
      make/archives.mk
  2. 1
      make/ni.mk
  3. 16
      make/system-tools.mk

5
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

1
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

16
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 $@

Loading…
Cancel
Save