Skip to content

Commit

Permalink
[mellanox]: Update MFT tools to v4.9.0 (#2207)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
  • Loading branch information
andriymoroz-mlnx authored and lguohan committed Oct 30, 2018
1 parent e2d565a commit ce54ef7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions platform/mellanox/mft.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Mellanox SAI

MFT = mft-4.5.0-31.amd64.deb
MFT = mft-4.9.0-38.amd64.deb
$(MFT)_SRC_PATH = $(PLATFORM_PATH)/mft
$(MFT)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
SONIC_MAKE_DEBS += $(MFT)

KERNEL_MFT = kernel-mft-dkms_4.5.0-$(KVERSION)_all.deb
KERNEL_MFT = kernel-mft-dkms_4.9.0-$(KVERSION)_all.deb
$(eval $(call add_derived_package,$(MFT),$(KERNEL_MFT)))
10 changes: 5 additions & 5 deletions platform/mellanox/mft/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.ONESHELL:
SHELL = /bin/bash

MFT_NAME = mft-4.5.0-31-x86_64-deb
MFT_NAME = mft-4.9.0-38-x86_64-deb
MFT_TGZ = $(MFT_NAME).tgz
SRC_DEB = kernel-mft-dkms_4.5.0-31_all.deb
SRC_DEB = kernel-mft-dkms_4.9.0-38_all.deb

MAIN_TARGET = mft-4.5.0-31.amd64.deb
DERIVED_TARGETS = kernel-mft-dkms_4.5.0-$(KVERSION)_all.deb
MAIN_TARGET = mft-4.9.0-38.amd64.deb
DERIVED_TARGETS = kernel-mft-dkms_4.9.0-$(KVERSION)_all.deb

$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf $(MFT_NAME)
Expand All @@ -21,7 +21,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
fi
done

tar xvf `sudo dkms mkdriverdisk kernel-mft-dkms/4.5.0 -a all -d ubuntu -k $(KVERSION) --media tar | grep "Disk image location" | cut -d':' -f2`
tar xvf `sudo dkms mkdriverdisk kernel-mft-dkms/4.9.0 -a all -d ubuntu -k $(KVERSION) --media tar | grep "Disk image location" | cut -d':' -f2`
popd

# fix timestamp because we do not actually build tools, only kernel
Expand Down

0 comments on commit ce54ef7

Please sign in to comment.