linux/linux.mk: fixed downloading kernel patches
authorIvo Slanina <ivo.slanina@gmail.com>
Mon, 12 Jan 2015 16:37:26 +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 ftp or http(s) URLs were downloaded using DOWNLOAD
macro. For example, if linux source was located at external git
repository, DOWNLOAD macro uses git scheme as well and buildroot
tried to downlod a path using DOWNLOAD_GIT macro. As a result, nothing
was downloaded and build siletly passes.

Patches located at mentioned URLs is now downloaded directly with
DOWNLOAD_WGET macro.

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 d02b02b1625aeab421989d20f30e220f9eeae324..29f59e882e05ce036aa3db9b6e9ff7118b67d602 100644 (file)
@@ -148,7 +148,7 @@ define LINUX_DOWNLOAD_PATCHES
        $(if $(LINUX_PATCHES),
                @$(call MESSAGE,"Download additional patches"))
        $(foreach patch,$(filter ftp://% http://% https://%,$(LINUX_PATCHES)),\
-               $(call DOWNLOAD,$(patch))$(sep))
+               $(call DOWNLOAD_WGET,$(patch),$(notdir $(patch)))$(sep))
 endef
 
 LINUX_POST_DOWNLOAD_HOOKS += LINUX_DOWNLOAD_PATCHES