Make LOCAL_PATCHES accept multiple patch files, as its name suggests.
This commit is contained in:
parent
69a9febdc2
commit
9c758be211
@ -345,8 +345,13 @@ release rerelease:
|
||||
cd ${CHROOTDIR}/usr && \
|
||||
${CVSPREFIX} cvs -R ${CVSARGS} -d ${CVSROOT} co ${CVSCMDARGS} ${CVS_SRCARGS} ${RELEASESRCMODULE}
|
||||
.endif
|
||||
.if defined(LOCAL_PATCHES) && exists(${LOCAL_PATCHES})
|
||||
cd ${CHROOTDIR}/usr/src && patch ${PATCH_FLAGS} < ${LOCAL_PATCHES}
|
||||
.if defined(LOCAL_PATCHES) && !empty(LOCAL_PATCHES)
|
||||
cd ${CHROOTDIR}/usr/${RELEASESRCMODULE}
|
||||
.for p in ${LOCAL_PATCHES}
|
||||
.if exists(${p})
|
||||
patch ${PATCH_FLAGS} < ${p}
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
.if defined(LOCAL_SCRIPT) && exists(${LOCAL_SCRIPT})
|
||||
cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
|
||||
|
@ -260,7 +260,7 @@ Each kernel is installed into
|
||||
so that it can be booted from the loader via
|
||||
.Dq Li "boot <config>" .
|
||||
.It Va LOCAL_PATCHES
|
||||
A patch file against
|
||||
Patch files against
|
||||
.Pa /usr/src
|
||||
that will be applied in the
|
||||
.Xr chroot 8
|
||||
|
Loading…
Reference in New Issue
Block a user