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>
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
include $(PLATFORM_PATH)/sdk.mk
|
|
include $(PLATFORM_PATH)/cpld.mk
|
|
include $(PLATFORM_PATH)/fw.mk
|
|
include $(PLATFORM_PATH)/mft.mk
|
|
include $(PLATFORM_PATH)/mlnx-sai.mk
|
|
include $(PLATFORM_PATH)/hw-management.mk
|
|
include $(PLATFORM_PATH)/hw-management-wd.mk
|
|
include $(PLATFORM_PATH)/mlnx-platform-api.mk
|
|
include $(PLATFORM_PATH)/docker-syncd-mlnx.mk
|
|
include $(PLATFORM_PATH)/docker-syncd-mlnx-rpc.mk
|
|
include $(PLATFORM_PATH)/docker-orchagent-mlnx.mk
|
|
include $(PLATFORM_PATH)/docker-saiserver-mlnx.mk
|
|
include $(PLATFORM_PATH)/one-image.mk
|
|
include $(PLATFORM_PATH)/libsaithrift-dev.mk
|
|
include $(PLATFORM_PATH)/docker-ptf-mlnx.mk
|
|
include $(PLATFORM_PATH)/mlnx-sfpd.mk
|
|
include $(PLATFORM_PATH)/mlnx-ffb.mk
|
|
include $(PLATFORM_PATH)/issu-version.mk
|
|
include $(PLATFORM_PATH)/mlnx-ssd-fw-update.mk
|
|
|
|
SONIC_ALL += $(SONIC_ONE_IMAGE) \
|
|
$(DOCKER_FPM)
|
|
|
|
# Inject mlnx sai into syncd
|
|
$(SYNCD)_DEPENDS += $(MLNX_SAI)
|
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
|
$(SYNCD)_DEPENDS += $(LIBSAITHRIFT_DEV)
|
|
endif
|
|
|
|
# Runtime dependency on mlnx sai is set only for syncd
|
|
$(SYNCD)_RDEPENDS += $(MLNX_SAI)
|