[Mellanox]: Update Mellanox HW management to V1.0.0030 (#209)

This commit is contained in:
Oleksandr Ivantsiv 2017-01-25 05:17:32 +02:00 committed by Shuotian Cheng
parent 1b49499b65
commit c0aa0b9c17
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Mellanox HW Management # Mellanox HW Management
MLNX_HW_MANAGEMENT_VERSION = 20.7.2016 MLNX_HW_MANAGEMENT_VERSION = V1.0.0030
export MLNX_HW_MANAGEMENT_VERSION export MLNX_HW_MANAGEMENT_VERSION

View File

@ -6,12 +6,13 @@ MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_amd64.deb
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# get sources # get sources
sudo rm -rf hw-management sudo rm -rf hw-management
wget -N -O mlnx-hw-mgmt-$(MLNX_HW_MANAGEMENT_VERSION).tar.gz https://github.com/Mellanox/mellanox-openswitch/raw/master/hw-mgmt/mlnx-hw-mgmt-$(MLNX_HW_MANAGEMENT_VERSION).tar.gz git clone https://github.com/Mellanox/hw-mgmt/ -b $(MLNX_HW_MANAGEMENT_VERSION) hw-management
tar xzf mlnx-hw-mgmt-$(MLNX_HW_MANAGEMENT_VERSION).tar.gz
# build # build
pushd hw-management pushd hw-management
sudo debian/rules binary KVERSION=$(KVERSION) sed "s~@SED_VERSION@~$(MLNX_HW_MANAGEMENT_VERSION)~" -i debian/changelog
chmod +x ./debian/rules
sudo ./debian/rules binary KVERSION=$(KVERSION)
popd popd
mv $* $(DEST)/ mv $* $(DEST)/