From: Sébastien Szymanski Date: Mon, 16 Mar 2015 09:57:17 +0000 (+0100) Subject: linux: stop if one linux patches doesn't apply X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=540e14a81c9caae52adb8482b6d73c7f716694ee;p=buildroot.git linux: stop if one linux patches doesn't apply If you have several linux patches directories, Buildroot does not stop if one patches of the first directories don't apply. This patch fixes this. Signed-off-by: Sébastien Szymanski Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/linux/linux.mk b/linux/linux.mk index b1aca419da..5a0ba01d42 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -162,11 +162,11 @@ LINUX_POST_DOWNLOAD_HOOKS += LINUX_DOWNLOAD_PATCHES define LINUX_APPLY_PATCHES for p in $(LINUX_PATCHES) ; do \ if echo $$p | grep -q -E "^ftp://|^http://|^https://" ; then \ - $(APPLY_PATCHES) $(@D) $(DL_DIR) `basename $$p` ; \ + $(APPLY_PATCHES) $(@D) $(DL_DIR) `basename $$p` || exit 1; \ elif test -d $$p ; then \ - $(APPLY_PATCHES) $(@D) $$p linux-\*.patch ; \ + $(APPLY_PATCHES) $(@D) $$p linux-\*.patch || exit 1; \ else \ - $(APPLY_PATCHES) $(@D) `dirname $$p` `basename $$p` ; \ + $(APPLY_PATCHES) $(@D) `dirname $$p` `basename $$p` || exit 1; \ fi \ done endef