4e08f4dcc3
backport c4b5b002c3
make swss build depends only on libsairedis instead of syncd. This allows to build swss without depending
on vendor sai library.
Currently, libsairedis build also buils syncd which requires vendor SAI lib. This makes difficult to build
swss docker in buster while still keeping syncd docker in stretch, as swss requires libsairedis which also
build syncd and requires vendor to provide SAI for buster. As swss docker does not really contain syncd
binary, so it is not necessary to build syncd for swss docker.
[submodule]: update sonic-sairedis
* 9a66890 2020-06-28 | [build]: add option to build without syncd (HEAD -> 201811, origin/201811) [Guohan Lu]
Signed-off-by: Guohan Lu <lguohan@gmail.com>
18 lines
531 B
Makefile
18 lines
531 B
Makefile
# include $(PLATFORM_PATH)/p4-softswitch.mk
|
|
include $(PLATFORM_PATH)/tenjin.mk
|
|
include $(PLATFORM_PATH)/p4-hlir.mk
|
|
include $(PLATFORM_PATH)/p4c-bm.mk
|
|
# include $(PLATFORM_PATH)/p4-sai-bm.mk
|
|
include $(PLATFORM_PATH)/p4-bmv.mk
|
|
include $(PLATFORM_PATH)/p4-switch.mk
|
|
include $(PLATFORM_PATH)/docker-sonic-p4.mk
|
|
include $(PLATFORM_PATH)/libsaithrift-dev.mk
|
|
|
|
SONIC_ALL += $(DOCKER_SONIC_P4)
|
|
|
|
$(SYNCD)_DEPENDS += $(P4_SWITCH)
|
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
|
$(SYNCD)_DEPENDS += $(LIBSAITHRIFT_DEV_P4)
|
|
endif
|
|
$(SYNCD)_RDEPENDS += $(P4_SWITCH)
|