mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
linux-rpm.mk: Add support for .diff extension of patch files
This commit is contained in:
parent
4db16be1f1
commit
676bbb5a73
1 changed files with 11 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ clean-patch-%:
|
|||
|
||||
patches/%-$(KERNEL_VERSION).patch: unpack.done
|
||||
export LANG=en_US ;\
|
||||
diff --exclude=CVS --unidirectional-new-file -aur linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* | \
|
||||
diff --exclude=CVS --unidirectional-new-file -aur \
|
||||
linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* | \
|
||||
grep -vie "^Nur in \|Only in " > $@.part; exit 0
|
||||
mv $@.part $@
|
||||
|
||||
|
|
@ -132,7 +133,16 @@ patches.done: unpack.done $(addsuffix .done,$(notdir $(PATCHES)))
|
|||
patch -d linux-$(KERNEL_VERSION) -p1 < $<
|
||||
touch $@
|
||||
|
||||
%.diff.done: %.diff
|
||||
patch -d linux-$(KERNEL_VERSION) -p1 < $<
|
||||
touch $@
|
||||
|
||||
%.patch:
|
||||
make $(filter %/$@,$(PATCHES))
|
||||
cp $(filter %/$@,$(PATCHES)) $@
|
||||
|
||||
%.diff:
|
||||
make $(filter %/$@,$(PATCHES))
|
||||
cp $(filter %/$@,$(PATCHES)) $@
|
||||
|
||||
unpack: unpack.done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue