From c98ed5b4e315a29c00bfbdefdca979685911695f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 15 May 2019 08:56:10 +0200 Subject: [PATCH] fail if kernel patches to not apply Signed-off-by: Thomas Lamprecht --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 062627f..f2af64c 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ ${KERNEL_SRC}.prepared: ${KERNEL_SRC_SUBMODULE} | submodule cp ${KERNEL_CFG_ORG} ${BUILD_DIR}/${KERNEL_SRC}/.config sed -i ${BUILD_DIR}/${KERNEL_SRC}/Makefile -e 's/^EXTRAVERSION.*$$/EXTRAVERSION=${EXTRAVERSION}/' rm -rf ${BUILD_DIR}/${KERNEL_SRC}/debian ${BUILD_DIR}/${KERNEL_SRC}/debian.master - cd ${BUILD_DIR}/${KERNEL_SRC}; for patch in ../../patches/kernel/*.patch; do echo "applying patch '$$patch'" && patch -p1 < $${patch}; done + set -e; cd ${BUILD_DIR}/${KERNEL_SRC}; for patch in ../../patches/kernel/*.patch; do echo "applying patch '$$patch'" && patch -p1 < $${patch}; done touch $@ ${MODULES}.prepared: $(addsuffix .prepared,${MODULE_DIRS})