2019-07-26 00:06:41 -05:00
|
|
|
#include $(PLATFORM_PATH)/sdk.mk
|
|
|
|
include $(PLATFORM_PATH)/sai.mk
|
|
|
|
include $(PLATFORM_PATH)/docker-syncd-mrvl.mk
|
|
|
|
include $(PLATFORM_PATH)/docker-syncd-mrvl-rpc.mk
|
2019-09-11 11:41:38 -05:00
|
|
|
include $(PLATFORM_PATH)/docker-saiserver-mrvl.mk
|
2019-07-26 00:06:41 -05:00
|
|
|
include $(PLATFORM_PATH)/libsaithrift-dev.mk
|
|
|
|
include $(PLATFORM_PATH)/one-image.mk
|
2023-06-13 02:25:23 -05:00
|
|
|
include $(PLATFORM_PATH)/mrvl-prestera.mk
|
2023-05-18 16:24:05 -05:00
|
|
|
include $(PLATFORM_PATH)/platform-nokia.mk
|
2023-11-20 11:43:02 -06:00
|
|
|
include $(PLATFORM_PATH)/platform-marvell.mk
|
2019-07-26 00:06:41 -05:00
|
|
|
|
|
|
|
SONIC_ALL += $(SONIC_ONE_IMAGE) \
|
2020-01-23 18:50:17 -06:00
|
|
|
$(DOCKER_FPM) \
|
|
|
|
$(DOCKER_PTF_MRVL) \
|
|
|
|
$(DOCKER_SYNCD_MRVL_RPC)
|
2019-07-26 00:06:41 -05:00
|
|
|
|
2020-07-03 00:03:50 -05:00
|
|
|
# Inject mrvl sai into syncd
|
|
|
|
$(SYNCD)_DEPENDS += $(MRVL_SAI)
|
2021-11-17 23:00:21 -06:00
|
|
|
$(SYNCD)_UNINSTALLS += $(MRVL_SAI)
|
[build]: wait for conflicts package to be uninstalled (#5039)
when parallel build is enabled, both docker-fpm-frr and docker-syncd-brcm
is built at the same time, docker-fpm-frr requires swss which requires to
install libsaivs-dev. docker-syncd-brcm requires syncd package which requires
to install libsaibcm-dev.
since libsaivs-dev and libsaibcm-dev install the sai header in the same
location, these two packages cannot be installed at the same time. Therefore,
we need to serialize the build between these two packages. Simply uninstall
the conflict package is not enough to solve this issue. The correct solution
is to have one package wait for another package to be uninstalled.
For example, if syncd is built first, then it will install libsaibcm-dev.
Meanwhile, if the swss build job starts and tries to install libsaivs-dev,
it will first try to query if libsaibcm-dev is installed or not. if it is
installed, then it will wait until libsaibcm-dev is uninstalled. After syncd
job is finished, it will uninstall libsaibcm-dev and swss build job will be
unblocked.
To solve this issue, _UNINSTALLS is introduced to uninstall a package that
is no longer needed and to allow blocked job to continue.
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2020-07-27 12:46:20 -05:00
|
|
|
|
2020-01-23 18:50:17 -06:00
|
|
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
2020-07-03 00:03:50 -05:00
|
|
|
$(SYNCD)_DEPENDS += $(LIBSAITHRIFT_DEV)
|
2020-01-23 18:50:17 -06:00
|
|
|
endif
|
2019-07-26 00:06:41 -05:00
|
|
|
|
|
|
|
# Runtime dependency on mrvl sai is set only for syncd
|
|
|
|
$(SYNCD)_RDEPENDS += $(MRVL_SAI)
|