Add pcied to PMON docker to monitor the PCIe device status (#5000)
* Add pcied to PMON container * remove tailing spaces * update pmon submodule * review comments * rebase to the latest
This commit is contained in:
parent
b2344f6f78
commit
02a98add92
@ -127,3 +127,16 @@ startsecs=10
|
||||
dependent_startup=true
|
||||
dependent_startup_wait_for=start:exited
|
||||
{% endif %}
|
||||
|
||||
{% if not skip_pcied %}
|
||||
[program:pcied]
|
||||
command=/usr/bin/pcied
|
||||
priority=10
|
||||
autostart=false
|
||||
autorestart=unexpected
|
||||
stdout_logfile=syslog
|
||||
stderr_logfile=syslog
|
||||
startsecs=10
|
||||
dependent_startup=true
|
||||
dependent_startup_wait_for=start:exited
|
||||
{% endif %}
|
||||
|
@ -10,7 +10,7 @@ $(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSENSORS) $(LM_SENSORS) $(FANCONTROL)
|
||||
ifeq ($(CONFIGURED_PLATFORM),barefoot)
|
||||
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(PYTHON_THRIFT)
|
||||
endif
|
||||
$(DOCKER_PLATFORM_MONITOR)_PYTHON_DEBS += $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD) $(SONIC_SYSEEPROMD) $(SONIC_THERMALCTLD)
|
||||
$(DOCKER_PLATFORM_MONITOR)_PYTHON_DEBS += $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD) $(SONIC_SYSEEPROMD) $(SONIC_THERMALCTLD) $(SONIC_PCIED)
|
||||
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
|
||||
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SWSSSDK_PY2)
|
||||
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PY_COMMON_PY2)
|
||||
|
10
rules/sonic-pcied.dep
Normal file
10
rules/sonic-pcied.dep
Normal file
@ -0,0 +1,10 @@
|
||||
SPATH:= $($(SONIC_PCIED)_SRC_PATH)
|
||||
DEP_FILES:= $(SONIC_COMMON_FILES_LIST) rules/sonic-pcied.mk rules/sonic-pcied.dep
|
||||
DEP_FILES+= $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
SMDEP_FILES:= $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
|
||||
|
||||
$(SONIC_PCIED)_CACHE_MODE:= GIT_CONTENT_SHA
|
||||
$(SONIC_PCIED)_DEP_FLAGS:= $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SONIC_PCIED)_DEP_FILES:= $(DEP_FILES)
|
||||
$(SONIC_PCIED)_SMDEP_FILES:= $(SMDEP_FILES)
|
||||
$(SONIC_PCIED)_SMDEP_PATHS:= $(SPATH)
|
6
rules/sonic-pcied.mk
Normal file
6
rules/sonic-pcied.mk
Normal file
@ -0,0 +1,6 @@
|
||||
# sonic-pcied (SONiC PCIe Monitor daemon) Debian package
|
||||
|
||||
SONIC_PCIED = python-sonic-pcied_1.0-1_all.deb
|
||||
$(SONIC_PCIED)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-pcied
|
||||
$(SONIC_PCIED)_WHEEL_DEPENDS = $(SONIC_DAEMON_BASE_PY2)
|
||||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_PCIED)
|
Loading…
Reference in New Issue
Block a user