2018-08-10 02:02:09 -05:00
|
|
|
.ONESHELL:
|
|
|
|
SHELL = /bin/bash
|
|
|
|
|
2022-07-13 08:21:33 -05:00
|
|
|
MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_$(CONFIGURED_ARCH).deb
|
2018-08-10 02:02:09 -05:00
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
|
|
|
|
|
|
pushd hw-mgmt
|
2021-12-16 08:02:03 -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)/
|