[Mellanox] [202012] fail the build when hw-mgmt patches do not apply (#9566)
Taken from https://github.com/Azure/sonic-buildimage/pull/9539 #### Why I did it To fix an issue that hw-mgmt patches were not applied. One patch was already in upstream hw-mgmt package thus applying it again caused an error and no other patches were applied. Also, I did it to improve the Makefile, so that the make will fail in case patches fail to apply. #### How I did it Removed obsolete patch, made applying patches a hard failure in the build. #### How to verify it Run the make and verify patches are applied.
This commit is contained in:
parent
bdc7ce86de
commit
31065ccb93
@ -6,7 +6,8 @@ MAIN_TARGET = hw-management_1.mlnx.$(MLNX_HW_MANAGEMENT_VERSION)_amd64.deb
|
||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
|
||||
pushd hw-mgmt
|
||||
git am ../*.patch
|
||||
git stash
|
||||
git apply -3 ../*.patch || exit 1
|
||||
chmod +x ./debian/rules
|
||||
KVERSION=$(KVERSION) dpkg-buildpackage -us -uc -b -rfakeroot -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
|
||||
popd
|
||||
|
Reference in New Issue
Block a user