[Buildroot] [PATCH 1/1] linux: stop if one linux patches doesn't apply

Yann E. MORIN yann.morin.1998 at free.fr
Mon Mar 16 13:51:40 UTC 2015


Sébastien, All,

On 2015-03-16 10:57 +0100, Sébastien Szymanski spake thusly:
> 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 <sebastien.szymanski at armadeus.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>

Regards,
Yann E. MORIN.

> ---
>  linux/linux.mk | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 78e589e..4a69e49 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -158,11 +158,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
> -- 
> 2.0.5
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list