Add support for building Mellanox image
ISSU will likely be broken. As of right now, the issu-version file is not being generated during build. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
parent
3a3b45db3a
commit
1d00613305
@ -829,7 +829,7 @@ sudo mkdir -p $FILESYSTEM_ROOT/etc/mlnx/
|
||||
sudo cp $files_path/$MLNX_SPC_FW_FILE $FILESYSTEM_ROOT/etc/mlnx/fw-SPC.mfa
|
||||
sudo cp $files_path/$MLNX_SPC2_FW_FILE $FILESYSTEM_ROOT/etc/mlnx/fw-SPC2.mfa
|
||||
sudo cp $files_path/$MLNX_SPC3_FW_FILE $FILESYSTEM_ROOT/etc/mlnx/fw-SPC3.mfa
|
||||
sudo cp $files_path/$ISSU_VERSION_FILE $FILESYSTEM_ROOT/etc/mlnx/issu-version
|
||||
#sudo cp $files_path/$ISSU_VERSION_FILE $FILESYSTEM_ROOT/etc/mlnx/issu-version
|
||||
sudo cp $files_path/$MLNX_FFB_SCRIPT $FILESYSTEM_ROOT/usr/bin/mlnx-ffb.sh
|
||||
sudo cp $files_path/$MLNX_ONIE_FW_UPDATE $FILESYSTEM_ROOT/usr/bin/$MLNX_ONIE_FW_UPDATE
|
||||
sudo cp $files_path/$MLNX_SSD_FW_UPDATE $FILESYSTEM_ROOT/usr/bin/$MLNX_SSD_FW_UPDATE
|
||||
|
@ -29,3 +29,5 @@ $(DOCKER_SAISERVER_MLNX)_RUN_OPT += --privileged -t
|
||||
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += --tmpfs /run/criu
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SAISERVER_MLNX)
|
||||
|
@ -42,3 +42,5 @@ $(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += --privileged -t
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_MLNX_RPC)
|
||||
|
@ -21,6 +21,9 @@ $(ISSU_VERSION_FILE)_SRC_PATH = $(PLATFORM_PATH)/issu-version
|
||||
$(ISSU_VERSION_FILE)_DEPENDS += $(APPLIBS)
|
||||
SONIC_MAKE_FILES += $(ISSU_VERSION_FILE)
|
||||
|
||||
MLNX_FILES += $(ISSU_VERSION_FILE)
|
||||
# TODO: Disable because the base OS version (bullseye) doesn't match what the
|
||||
# SDK app packages are built for (buster), and this target assumes that they
|
||||
# are available.
|
||||
#MLNX_FILES += $(ISSU_VERSION_FILE)
|
||||
|
||||
export ISSU_VERSION_FILE
|
||||
|
@ -23,11 +23,15 @@ export MFT_VERSION MFT_REVISION
|
||||
|
||||
MFT = mft_$(MFT_VERSION)-$(MFT_REVISION)_amd64.deb
|
||||
$(MFT)_SRC_PATH = $(PLATFORM_PATH)/mft
|
||||
ifeq ($(DISTRO), bullseye)
|
||||
$(MFT)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
|
||||
endif
|
||||
SONIC_MAKE_DEBS += $(MFT)
|
||||
|
||||
ifeq ($(DISTRO), bullseye)
|
||||
KERNEL_MFT = kernel-mft-dkms-modules-$(KVERSION)_$(MFT_VERSION)_amd64.deb
|
||||
$(eval $(call add_derived_package,$(MFT),$(KERNEL_MFT)))
|
||||
endif
|
||||
|
||||
MFT_OEM = mft-oem_$(MFT_VERSION)-$(MFT_REVISION)_amd64.deb
|
||||
$(eval $(call add_derived_package,$(MFT),$(MFT_OEM)))
|
||||
|
@ -35,6 +35,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
wget -O $(MFT_TGZ) http://www.mellanox.com/downloads/MFT/$(MFT_TGZ)
|
||||
tar xzf $(MFT_TGZ)
|
||||
|
||||
ifeq ($(DISTRO), bullseye)
|
||||
pushd $(MFT_NAME)/SDEBS
|
||||
|
||||
# put a lock here because dpkg does not allow installing packages in parallel
|
||||
@ -62,6 +63,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
popd
|
||||
|
||||
rm -rf $(DKMS_TMP)
|
||||
endif
|
||||
|
||||
# fix timestamp because we do not actually build tools, only kernel
|
||||
touch $(MFT_NAME)/DEBS/*.deb
|
||||
|
Reference in New Issue
Block a user