pkg-download: Allow packages to pass generic options to download methods
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 23 Aug 2016 12:19:45 +0000 (14:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Aug 2016 12:59:01 +0000 (14:59 +0200)
commit91b34e0abc99b7346f71bbc99283ff7ffac34799
tree3e384fee876bfcc6e9cabda5745d2d1992933253
parentff559846fdc11f718ef6ed49c25117fab90b8019
pkg-download: Allow packages to pass generic options to download methods

Introduce a new package variable $(PKG)_DL_OPTS. When this variable
is defined, its value is passed to the downloader as options to
the underlying command. Packages can now retrieve archives from server
expecting logins and passwords, use referer url, proxy or specific
options for cloning a repository.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-download.mk