-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pmon daemons python3 build support (#6176)
**- Why I did it** python2 is end of life and SONiC is going to support python3. This PR is going to support: 1. Build pmon daemons with python3 2. Install and run python3 version pmon daemons **- How I did it** 1. Change pmon daemons make files to build bothe python2 and python3 whl 2. Change docker-platform-monitor make files to install both python2 and python3 whl 3. Change pmon docker startup files to start pmon daemons according to the supported platform API version
- Loading branch information
1 parent
721c68c
commit 51f896b
Showing
17 changed files
with
272 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
SPATH := $($(SONIC_LEDD)_SRC_PATH) | ||
SPATH := $($(SONIC_LEDD_PY2)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-ledd.mk rules/sonic-ledd.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) | ||
|
||
$(SONIC_LEDD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_LEDD)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_LEDD)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_LEDD)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_LEDD)_SMDEP_PATHS := $(SPATH) | ||
$(SONIC_LEDD_PY2)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_LEDD_PY2)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_LEDD_PY2)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_LEDD_PY2)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_LEDD_PY2)_SMDEP_PATHS := $(SPATH) | ||
|
||
$(SONIC_LEDD_PY3)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_LEDD_PY3)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_LEDD_PY3)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_LEDD_PY3)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_LEDD_PY3)_SMDEP_PATHS := $(SPATH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
# sonic-ledd (SONiC Front-panel LED control daemon) Debian package | ||
|
||
SONIC_LEDD = sonic_ledd-1.1-py2-none-any.whl | ||
$(SONIC_LEDD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-ledd | ||
$(SONIC_LEDD)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_LEDD)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(PYTHON3_SWSSCOMMON) | ||
$(SONIC_LEDD)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_LEDD) | ||
# SONIC_LEDD_PY2 package | ||
|
||
SONIC_LEDD_PY2 = sonic_ledd-1.1-py2-none-any.whl | ||
$(SONIC_LEDD_PY2)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-ledd | ||
$(SONIC_LEDD_PY2)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_LEDD_PY2)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) | ||
$(SONIC_LEDD_PY2)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_LEDD_PY2) | ||
|
||
# SONIC_LEDD_PY3 package | ||
|
||
SONIC_LEDD_PY3 = sonic_ledd-1.1-py3-none-any.whl | ||
$(SONIC_LEDD_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-ledd | ||
$(SONIC_LEDD_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_LEDD_PY2) | ||
$(SONIC_LEDD_PY3)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON3_SWSSCOMMON) | ||
$(SONIC_LEDD_PY3)_PYTHON_VERSION = 3 | ||
SONIC_PYTHON_WHEELS += $(SONIC_LEDD_PY3) |
Oops, something went wrong.