Skip to content

Commit 774d0e7

Browse files
marian-pritsaklguohan
authored andcommitted
[mellanox]: Use KVERSION variable in mft recipe (#11)
Signed-off-by: marian-pritsak <marianp@mellanox.com>
1 parent 37ebc81 commit 774d0e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platform/mellanox/mft/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ SHELL = /bin/bash
44

55
MFT_NAME = mft-4.8.0-26-x86_64-deb
66
MFT_TGZ = $(MFT_NAME).tgz
7-
KERNELVER = 4.9.0-5-amd64
87
SRC_DEB = kernel-mft-dkms_4.8.0-26_all.deb
98

109
MAIN_TARGET = mft-4.8.0-26.amd64.deb
11-
DERIVED_TARGETS = kernel-mft-dkms_4.8.0-4.9.0-5-amd64_all.deb
10+
DERIVED_TARGETS = kernel-mft-dkms_4.8.0-$(KVERSION)_all.deb
1211

1312
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
1413
rm -rf $(MFT_NAME)
@@ -23,7 +22,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
2322
fi
2423
done
2524

26-
tar xvf `sudo dkms mkdriverdisk kernel-mft-dkms/4.8.0 -a all -d ubuntu -k $(KERNELVER) --media tar | grep "Disk image location" | cut -d':' -f2`
25+
tar xvf `sudo dkms mkdriverdisk kernel-mft-dkms/4.8.0 -a all -d ubuntu -k $(KVERSION) --media tar | grep "Disk image location" | cut -d':' -f2`
2726
popd
2827

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

0 commit comments

Comments
 (0)