46bcda359c
- Add INCLUDE_PINS to config to enable/disable container - Add Docker files and supporting resources - Add sonic-pins submodule and associated make files Submission containing materials of a third party: Copyright Google LLC; Licensed under Apache 2.0 #### Why I did it Adds P4RT container to SONiC for PINS The P4RT app is covered by this HLD: https://github.com/pins/SONiC/blob/master/doc/pins/p4rt_app_hld.md #### How I did it Followed the pattern and templates used for other SONiC applications #### How to verify it Build SONiC with INCLUDE_P4RT set to "y". Verify that the resulting build has a container called "p4rt" running. You can verify that the service is up by running the following command on the SONiC switch: ```bash sudo netstat -lpnt | grep p4rt ``` You should see the service listening on TCP port 9559. #### Which release branch to backport (provide reason below if selected) None #### Description for the changelog Build P4RT container for PINS
13 lines
602 B
Plaintext
13 lines
602 B
Plaintext
SPATH := $($(SONIC_P4RT)_SRC_PATH)
|
|
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/p4rt.mk rules/p4rt.dep
|
|
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) $(SPATH)/Makefile
|
|
SMDEP_PATH := $(SPATH)/sonic-pins
|
|
DEP_FILES += $(shell cd $(SPATH) && git ls-files | grep -v ^sonic-pins)
|
|
SMDEP_FILES := $(addprefix $(SMDEP_PATH)/,$(shell cd $(SMDEP_PATH) && git ls-files))
|
|
|
|
$(SONIC_P4RT)_CACHE_MODE := GIT_CONTENT_SHA
|
|
$(SONIC_P4RT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
|
$(SONIC_P4RT)_DEP_FILES := $(DEP_FILES)
|
|
$(SONIC_P4RT)_SMDEP_FILES := $(SMDEP_FILES)
|
|
$(SONIC_P4RT)_SMDEP_PATHS := $(SMDEP_PATH)
|