Add sx-kernel to all targets (#138)

Define sx-kernel pckages in sdk.mk
Add them to SONIC_ALL
This commit is contained in:
Marian Pritsak 2016-12-19 19:39:07 +02:00 committed by lguohan
parent 775156f3bf
commit b8ca9c4047
2 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,8 @@ SONIC_ALL += $(DOCKER_SYNCD_MLNX) \
$(DOCKER_SNMP_SV2) \ $(DOCKER_SNMP_SV2) \
$(DOCKER_TEAM) \ $(DOCKER_TEAM) \
$(DOCKER_PLATFORM_MONITOR) \ $(DOCKER_PLATFORM_MONITOR) \
debs/$(MLNX_HW_MANAGEMENT) debs/$(MLNX_HW_MANAGEMENT) \
debs/$(SX_KERNEL)
# Inject mlnx sai into sairedis # Inject mlnx sai into sairedis
$(LIBSAIREDIS)_DEPENDS += $(MLNX_SAI) $(LIBSAIREDIS)_DEPENDS += $(MLNX_SAI)

View File

@ -39,6 +39,9 @@ SXD_LIBS_DEV_STATIC = sxd-libs-dev-static_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
$(eval $(call add_derived_package,$(SXD_LIBS),$(SXD_LIBS_DEV_STATIC))) $(eval $(call add_derived_package,$(SXD_LIBS),$(SXD_LIBS_DEV_STATIC)))
#packages that are required for runtime only #packages that are required for runtime only
PYTHON_SDK_API = python-sdk-api_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb PYTHON_SDK_API = python-sdk-api_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
SX_KERNEL = sx-kernel_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
SX_KERNEL_DEV = sx-kernel-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
$(eval $(call add_derived_package,$(SX_KERNEL),$(SX_KERNEL_DEV)))
define make_url define make_url
$(1)_URL = $(MLNX_SDK_BASE_URL)/$(1) $(1)_URL = $(MLNX_SDK_BASE_URL)/$(1)
@ -47,6 +50,6 @@ endef
$(eval $(foreach deb,$(MLNX_SDK_DEBS),$(call make_url,$(deb)))) $(eval $(foreach deb,$(MLNX_SDK_DEBS),$(call make_url,$(deb))))
$(eval $(foreach deb,$(MLNX_SDK_RDEBS),$(call make_url,$(deb)))) $(eval $(foreach deb,$(MLNX_SDK_RDEBS),$(call make_url,$(deb))))
$(eval $(foreach deb,$(PYTHON_SDK_API),$(call make_url,$(deb)))) $(eval $(foreach deb,$(PYTHON_SDK_API) $(SX_KERNEL) $(SX_KERNEL_DEV),$(call make_url,$(deb))))
SONIC_ONLINE_DEBS += $(MLNX_SDK_RDEBS) $(PYTHON_SDK_API) SONIC_ONLINE_DEBS += $(MLNX_SDK_RDEBS) $(PYTHON_SDK_API) $(SX_KERNEL)