[Mellanox] build mft/hw-management in buster stage
Currently we port SONiC to buster in a way that base image is on buster and other dockers based on stretch. The benefit is that tasks can be carried out simultaneously. The build procedure can be treated as 2 stages. The first stage is to build the stretch-based debs and dockers and the second stage is to build the buster-based ones. One thing we have to pay attention to is some debs depend on kernel should not be built at stretch stage because the kernel isn't available at that time. The idea is to move that kind of debs out of SONIC_STRETCH_DEBS. Meanwhile, any dependency explicitly put on the stretch based dockers on kernel should be removed.
This commit is contained in:
parent
65dfe75903
commit
7e0cfcee2c
@ -8,5 +8,3 @@ MLNX_HW_MANAGEMENT = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_amd64.de
|
||||
$(MLNX_HW_MANAGEMENT)_SRC_PATH = $(PLATFORM_PATH)/hw-management
|
||||
$(MLNX_HW_MANAGEMENT)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
|
||||
SONIC_MAKE_DEBS += $(MLNX_HW_MANAGEMENT)
|
||||
|
||||
SONIC_STRETCH_DEBS += $(MLNX_HW_MANAGEMENT)
|
||||
|
@ -15,5 +15,3 @@ $(eval $(call add_derived_package,$(MFT),$(KERNEL_MFT)))
|
||||
|
||||
MFT_OEM = mft-oem_$(MFT_VERSION)-$(MFT_REVISION)_amd64.deb
|
||||
$(eval $(call add_derived_package,$(MFT),$(MFT_OEM)))
|
||||
|
||||
SONIC_STRETCH_DEBS += $(KERNEL_MFT)
|
||||
|
@ -27,6 +27,6 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
|
||||
# fix timestamp because we do not actually build tools, only kernel
|
||||
touch $(MFT_NAME)/DEBS/*
|
||||
mv $(MFT_NAME)/SDEBS/ubuntu-drivers/4.9.0/kernel-mft-dkms_$(MFT_VERSION)-$(KVERSION)_all.deb $(MFT_NAME)/DEBS/* $(DEST)
|
||||
mv $(MFT_NAME)/SDEBS/ubuntu-drivers/4.19.0/kernel-mft-dkms_$(MFT_VERSION)-$(KVERSION)_all.deb $(MFT_NAME)/DEBS/* $(DEST)
|
||||
|
||||
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
|
||||
|
@ -29,6 +29,3 @@ $(SYNCD)_RDEPENDS += $(MLNX_SAI)
|
||||
|
||||
# Inject mlnx sdk libs to platform monitor
|
||||
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(APPLIBS) $(SX_COMPLIB) $(SXD_LIBS) $(SX_GEN_UTILS) $(PYTHON_SDK_API) $(APPLIBS_DEV) $(SX_COMPLIB_DEV) $(SXD_LIBS_DEV) $(SX_GEN_UTILS_DEV)
|
||||
|
||||
# Inject mlnx mlx libs to platform monitor
|
||||
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(MFT)
|
||||
|
@ -152,8 +152,6 @@ else
|
||||
SONIC_COPY_DEBS += $(MLNX_SDK_RDEBS) $(PYTHON_SDK_API)
|
||||
endif
|
||||
|
||||
SONIC_STRETCH_DEBS += $(SX_KERNEL)
|
||||
|
||||
mlnx-sdk-packages: $(addprefix $(DEBS_PATH)/, $(MLNX_SDK_RDEBS) $(PYTHON_SDK_API) $(SX_KERNEL))
|
||||
|
||||
SONIC_PHONY_TARGETS += mlnx-sdk-packages
|
||||
|
Loading…
Reference in New Issue
Block a user