From c0aa0b9c17a8cac73fc54813eeaf014ba5f2cdd1 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Wed, 25 Jan 2017 05:17:32 +0200 Subject: [PATCH] [Mellanox]: Update Mellanox HW management to V1.0.0030 (#209) --- platform/mellanox/hw-management.mk | 2 +- platform/mellanox/hw-management/Makefile | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/mellanox/hw-management.mk b/platform/mellanox/hw-management.mk index 6c6ae480db..1aa6386230 100644 --- a/platform/mellanox/hw-management.mk +++ b/platform/mellanox/hw-management.mk @@ -1,6 +1,6 @@ # Mellanox HW Management -MLNX_HW_MANAGEMENT_VERSION = 20.7.2016 +MLNX_HW_MANAGEMENT_VERSION = V1.0.0030 export MLNX_HW_MANAGEMENT_VERSION diff --git a/platform/mellanox/hw-management/Makefile b/platform/mellanox/hw-management/Makefile index 8d1dbcb79d..ee2899d07c 100644 --- a/platform/mellanox/hw-management/Makefile +++ b/platform/mellanox/hw-management/Makefile @@ -6,12 +6,13 @@ MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_amd64.deb $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : # get sources 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 - tar xzf mlnx-hw-mgmt-$(MLNX_HW_MANAGEMENT_VERSION).tar.gz + git clone https://github.com/Mellanox/hw-mgmt/ -b $(MLNX_HW_MANAGEMENT_VERSION) hw-management # build 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 mv $* $(DEST)/