2018-08-10 02:02:09 -05:00
|
|
|
.ONESHELL:
|
|
|
|
SHELL = /bin/bash
|
|
|
|
|
|
|
|
MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_amd64.deb
|
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
|
|
|
|
|
|
pushd hw-mgmt
|
2022-01-13 17:08:27 -06:00
|
|
|
git stash
|
|
|
|
git apply -3 ../*.patch || exit 1
|
2018-08-10 02:02:09 -05:00
|
|
|
chmod +x ./debian/rules
|
2021-01-18 15:10:27 -06:00
|
|
|
KVERSION=$(KVERSION) dpkg-buildpackage -us -uc -b -rfakeroot -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
|
2018-08-10 02:02:09 -05:00
|
|
|
popd
|
|
|
|
|
|
|
|
mv $* $(DEST)/
|