The patch series file is now a parameter.

This commit is contained in:
Jeffrey Townsend
2016-08-18 13:19:38 -07:00
parent a172c492e6
commit 6e85a367f8

View File

@@ -27,12 +27,13 @@ set -e
KERNDIR=$1
PATCHDIR=$2
PATCH_SERIES=$3
if [ -f "${PATCHDIR}/series" ]; then
if [ -f "${PATCH_SERIES}" ]; then
#
# The series file contains the patch order.
#
for p in `cat ${PATCHDIR}/series`; do
for p in `cat ${PATCH_SERIES}`; do
echo "Appying ${p}..."
if [ -x "${PATCHDIR}/${p}" ]; then
"${PATCHDIR}/${p}" "${KERNDIR}"