forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Build/install remaining platform daemons as Python wheel pack…
…ages (sonic-net#5188) As part of migrating all Python-based package installers to wheel format rather than Debian packages. Also to allow for easily building a Python 3 version of the package in the near future. ledd and psud were converted in earlier PRs. This PR converts the remainder: - pcied - syseepromd - thermalctld - xcvrd
- Loading branch information
1 parent
dc0cea8
commit 1f8b297
Showing
9 changed files
with
29 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# sonic-pcied (SONiC PCIe Monitor daemon) Debian package | ||
|
||
SONIC_PCIED = python-sonic-pcied_1.0-1_all.deb | ||
SONIC_PCIED = sonic_pcied-1.0-py2-none-any.whl | ||
$(SONIC_PCIED)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-pcied | ||
$(SONIC_PCIED)_WHEEL_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_PCIED) | ||
$(SONIC_PCIED)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_PCIED)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_PCIED) |
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,12 +1,10 @@ | ||
|
||
SPATH := $($(SONIC_SYSEEPROMD)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-syseepromd.mk rules/sonic-syseepromd.dep | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-syseepromd.mk rules/sonic-syseepromd.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) | ||
|
||
$(SONIC_SYSEEPROMD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_SYSEEPROMD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_SYSEEPROMD)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_SYSEEPROMD)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_SYSEEPROMD)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_SYSEEPROMD)_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,6 +1,7 @@ | ||
# sonic-syseepromd (SONiC Syseeprom gathering daemon) Debian package | ||
|
||
SONIC_SYSEEPROMD = python-sonic-syseepromd_1.0-1_all.deb | ||
SONIC_SYSEEPROMD = sonic_syseepromd-1.0-py2-none-any.whl | ||
$(SONIC_SYSEEPROMD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-syseepromd | ||
$(SONIC_SYSEEPROMD)_WHEEL_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_SYSEEPROMD) | ||
$(SONIC_SYSEEPROMD)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_SYSEEPROMD)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_SYSEEPROMD) |
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,12 +1,10 @@ | ||
|
||
SPATH := $($(SONIC_THERMALCTLD)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-thermalctld.mk rules/sonic-thermalctld.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) | ||
|
||
$(SONIC_THERMALCTLD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_THERMALCTLD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_THERMALCTLD)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_THERMALCTLD)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_THERMALCTLD)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_THERMALCTLD)_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,6 +1,7 @@ | ||
# sonic-thermalctld (SONiC Thermal control daemon) Debian package | ||
|
||
SONIC_THERMALCTLD = python-sonic-thermalctld_1.0-1_all.deb | ||
SONIC_THERMALCTLD = sonic_thermalctld-1.0-py2-none-any.whl | ||
$(SONIC_THERMALCTLD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-thermalctld | ||
$(SONIC_THERMALCTLD)_WHEEL_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_THERMALCTLD) | ||
$(SONIC_THERMALCTLD)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_THERMALCTLD)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_THERMALCTLD) |
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,12 +1,10 @@ | ||
|
||
SPATH := $($(SONIC_XCVRD)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-xcvrd.mk rules/sonic-xcvrd.dep | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-xcvrd.mk rules/sonic-xcvrd.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) | ||
|
||
$(SONIC_XCVRD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_XCVRD)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_XCVRD)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_XCVRD)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_XCVRD)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_XCVRD)_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,6 +1,7 @@ | ||
# sonic-xcvrd (SONiC Transceiver monitoring daemon) Debian package | ||
|
||
SONIC_XCVRD = python-sonic-xcvrd_1.0-1_all.deb | ||
SONIC_XCVRD = sonic_xcvrd-1.0-py2-none-any.whl | ||
$(SONIC_XCVRD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-xcvrd | ||
$(SONIC_XCVRD)_WHEEL_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
SONIC_PYTHON_STDEB_DEBS += $(SONIC_XCVRD) | ||
$(SONIC_XCVRD)_DEPENDS = $(SONIC_PY_COMMON_PY2) | ||
$(SONIC_XCVRD)_PYTHON_VERSION = 2 | ||
SONIC_PYTHON_WHEELS += $(SONIC_XCVRD) |