make: always git reset on patch renewal

If a patch changed inbetween application and reversal
changed/remove parts might persist otherwise
This commit is contained in:
Oneric 2024-10-14 00:19:43 +02:00
parent d54d8e69d8
commit 92b9fbf85c

View file

@ -38,9 +38,11 @@ patch: patch.stamp
patch.stamp: submodule.stamp patches/series $(wildcard patches/*.patch)
@echo "Applying patches"
@# `pop -a` return 2 if currently no patches applied, thus ignore exit code
@cd $(SUBMODULE_NAME) && \
$(QUILT) pop -qfa; \
$(QUILT) push -a
@cd $(SUBMODULE_NAME) && { \
$(QUILT) pop -qfa; \
git reset --hard && \
$(QUILT) push -a; \
}
@touch $@