File tree Expand file tree Collapse file tree
dockers/docker-platform-monitor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
299299 squashfs-tools \
300300 grub2-common \
301301 rsyslog \
302- ethtool \
303302 screen \
304303 hping3 \
305304 tcptraceroute \
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ RUN apt-get update && \
2222 rrdtool \
2323 python-smbus \
2424 python3-smbus \
25- ethtool \
2625 dmidecode \
2726 i2c-tools
2827
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ DOCKER_PLATFORM_MONITOR_DBG = $(DOCKER_PLATFORM_MONITOR_STEM)-$(DBG_IMAGE_MARK).
66
77$(DOCKER_PLATFORM_MONITOR)_PATH = $(DOCKERS_PATH ) /$(DOCKER_PLATFORM_MONITOR_STEM )
88
9- $(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSENSORS ) $(LM_SENSORS ) $(FANCONTROL ) $(SENSORD ) $(LIBSWSSCOMMON ) $(PYTHON_SWSSCOMMON ) $(PYTHON3_SWSSCOMMON ) $(SMARTMONTOOLS )
9+ $(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSENSORS ) $(LM_SENSORS ) $(FANCONTROL ) $(SENSORD ) $(LIBSWSSCOMMON ) $(PYTHON_SWSSCOMMON ) $(PYTHON3_SWSSCOMMON ) $(SMARTMONTOOLS ) $( ETHTOOL )
1010
1111$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2 )
1212$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY3 )
@@ -67,4 +67,5 @@ $(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/bin/sensors
6767$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/sbin/smartctl
6868$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/sbin/iSmart
6969$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/sbin/SmartCmd
70+ $(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/bin/ethtool
7071$(DOCKER_PLATFORM_MONITOR)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT )
Original file line number Diff line number Diff line change 1+ SPATH := $($(ETHTOOL)_SRC_PATH)
2+ DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/ethtool.mk rules/ethtool.dep
3+ DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
4+ DEP_FILES += $(shell git ls-files $(SPATH))
5+
6+ $(ETHTOOL)_CACHE_MODE := GIT_CONTENT_SHA
7+ $(ETHTOOL)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
8+ $(ETHTOOL)_DEP_FILES := $(DEP_FILES)
Original file line number Diff line number Diff line change 1+ # ethtool
2+
3+ ETHTOOL_VERSION_BASE = 5.9
4+ export ETHTOOL_VERSION_BASE
5+
6+ ETHTOOL = ethtool_$(ETHTOOL_VERSION_BASE ) -1_amd64.deb
7+ $(ETHTOOL)_SRC_PATH = $(SRC_PATH ) /ethtool
8+ SONIC_MAKE_DEBS += $(ETHTOOL )
9+
10+ ETHTOOL_DBG = ethtool-dbgsym_$(ETHTOOL_VERSION_BASE ) -1_amd64.deb
11+ $(eval $(call add_extra_package,$(ETHTOOL),$(ETHTOOL_DBG)))
12+
13+ export ETHTOOL ETHTOOL_DBG
Original file line number Diff line number Diff line change 1+ .ONESHELL :
2+ SHELL = /bin/bash
3+ .SHELLFLAGS += -e
4+
5+ MAIN_TARGET = $(ETHTOOL )
6+ DERIVED_TARGET = $(ETHTOOL_DBG )
7+
8+ $(addprefix $(DEST ) /, $(MAIN_TARGET ) ) : $(DEST ) /% :
9+ # Obtaining the ethtool debian package
10+ rm -rf ethtool*
11+ git clone https://salsa.debian.org/kernel-team/ethtool/
12+ pushd ethtool
13+ git checkout tags/debian/1%$(ETHTOOL_VERSION_BASE ) -1
14+ # Build package
15+ dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS ) --admindir $(SONIC_DPKG_ADMINDIR )
16+ popd
17+ mv $(DERIVED_TARGET ) $* $(DEST ) /
18+
19+ $(addprefix $(DEST ) /, $(DERIVED_TARGET ) ) : $(DEST ) /% : $(DEST ) /$(MAIN_TARGET )
You can’t perform that action at this time.
0 commit comments