linux/linux.mk: added https:// pattern for kernel patches
authorIvo Slanina <ivo.slanina@gmail.com>
Mon, 12 Jan 2015 16:37:25 +0000 (17:37 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 14 Jan 2015 15:48:56 +0000 (16:48 +0100)
Patches located at https:// scheme URL were threated as directories,
causing build failures.

Fixed by adding https:// pattern.

Signed-off-by: Ivo Slanina <ivo.slanina@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/linux.mk

index 680521c55b3813361747d5c86644482f46c36b02..d02b02b1625aeab421989d20f30e220f9eeae324 100644 (file)
@@ -147,7 +147,7 @@ endif # BR2_LINUX_KERNEL_VMLINUX
 define LINUX_DOWNLOAD_PATCHES
        $(if $(LINUX_PATCHES),
                @$(call MESSAGE,"Download additional patches"))
-       $(foreach patch,$(filter ftp://% http://%,$(LINUX_PATCHES)),\
+       $(foreach patch,$(filter ftp://% http://% https://%,$(LINUX_PATCHES)),\
                $(call DOWNLOAD,$(patch))$(sep))
 endef
 
@@ -155,7 +155,7 @@ 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://" ; then \
+               if echo $$p | grep -q -E "^ftp://|^http://|^https://" ; then \
                        $(APPLY_PATCHES) $(@D) $(DL_DIR) `basename $$p` ; \
                elif test -d $$p ; then \
                        $(APPLY_PATCHES) $(@D) $$p linux-\*.patch ; \