diff options
author | Ian.Campbell@xensource.com <Ian.Campbell@xensource.com> | 2006-08-15 10:06:13 +0100 |
---|---|---|
committer | Ian.Campbell@xensource.com <Ian.Campbell@xensource.com> | 2006-08-15 10:06:13 +0100 |
commit | 99c09abe281c30441c809bee095adbfd4799bdbe (patch) | |
tree | f2d4c7b0abd5bd3a3603eaa22075fe9e58a6f488 /buildconfigs/Rules.mk | |
parent | 43de5d4b84115d249ca2d58e959f7d23c96a53a5 (diff) | |
download | xen-99c09abe281c30441c809bee095adbfd4799bdbe.tar.gz xen-99c09abe281c30441c809bee095adbfd4799bdbe.tar.bz2 xen-99c09abe281c30441c809bee095adbfd4799bdbe.zip |
Add a series file to order the patches in patches/linux-<version>
The initial ordering is the same as produced by the previous shell
globbing method.
The series file is a simple list of patch files relative to the
patches/linux-<version>/ directory. We do not support comments,
trailing directives (e.g. "-pN") or blank lines. Apart from these
restrictions the series file should be compatible with patch queue
management tools such as quilt.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'buildconfigs/Rules.mk')
-rw-r--r-- | buildconfigs/Rules.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk index 0a508b782b..b5da43801c 100644 --- a/buildconfigs/Rules.mk +++ b/buildconfigs/Rules.mk @@ -63,8 +63,12 @@ ref-%/.valid-ref: pristine-%/.valid-pristine set -e rm -rf $(@D) cp -al $(<D) $(@D) - if [ -d patches/$* ] ; then \ - for i in patches/$*/*.patch ; do patch -d $(@D) -p1 <$$i || exit 1 ; done ; \ + if [ -d patches/$* ] ; then \ + echo Applying patches from patches/$*... ; \ + for i in $$(cat patches/$*/series) ; do \ + echo ... $$i ; \ + patch -d $(@D) -p1 --quiet <patches/$*/$$i || exit 1 ; \ + done ; \ fi touch $@ # update timestamp to avoid rebuild endif |