-
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.
Mgmt reorg -- submodule and build rules for sonic-mgmt-common (#4765)
- Why I did it New repo sonic-mgmt-common is introduced for the common translib related code. This commit adds build rules for this new repo. - How I did it Added sonic-mgmt-common submodule Added build rules for the new sonic-mgmt-common repo. It creates two deb packages -- sonic-mgmt-common_1.0.0_{arch}.deb and sonic-mgmt-common-codegen_1.0.0_{arch}.deb. Package cache is enabled. Added dependency on sonic-mgmt-common for mgmt-framework and telemetry debs and dockers. - How to verify it Full build and incremental builds Basic ACL and interface opreations through REST, KLISH CLI and gNMI - Description for the changelog Git submodule and build rules for the new sonic-mgmt-common repo.
- Loading branch information
1 parent
c6dcd7d
commit 0d809d0
Showing
10 changed files
with
36 additions
and
6 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 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
SPATH := $($(SONIC_MGMT_COMMON)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-mgmt-common.mk rules/sonic-mgmt-common.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) | ||
|
||
$(SONIC_MGMT_COMMON)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(SONIC_MGMT_COMMON)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(SONIC_MGMT_COMMON)_DEP_FILES := $(DEP_FILES) | ||
$(SONIC_MGMT_COMMON)_SMDEP_FILES := $(SMDEP_FILES) | ||
$(SONIC_MGMT_COMMON)_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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SONiC mgmt-common package | ||
|
||
MGMT_COMMON_VERSION = 1.0.0 | ||
SONIC_MGMT_COMMON = sonic-mgmt-common_$(MGMT_COMMON_VERSION)_$(CONFIGURED_ARCH).deb | ||
$(SONIC_MGMT_COMMON)_SRC_PATH = $(SRC_PATH)/sonic-mgmt-common | ||
$(SONIC_MGMT_COMMON)_DEPENDS = $(LIBYANG_DEV) $(LIBYANG) | ||
$(SONIC_MGMT_COMMON)_RDEPENDS = $(LIBYANG) | ||
SONIC_DPKG_DEBS += $(SONIC_MGMT_COMMON) | ||
|
||
SONIC_MGMT_COMMON_CODEGEN = sonic-mgmt-common-codegen_$(MGMT_COMMON_VERSION)_$(CONFIGURED_ARCH).deb | ||
$(eval $(call add_derived_package,$(SONIC_MGMT_COMMON),$(SONIC_MGMT_COMMON_CODEGEN))) | ||
|
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
Submodule sonic-mgmt-common
added at
444aa9
Submodule sonic-mgmt-framework
updated
from f789b2 to 3c3384
Submodule sonic-telemetry
updated
from aaa918 to fa8d49