tn3399_openwrt/config
Christian Marangi f17608ddca
scripts/download.pl: make the download tool configurable
Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-20 00:35:19 +02:00
..
Config-build.in toolchain: Select USE_SSTRIP with external musl toolchain 2022-09-12 23:16:22 +02:00
Config-devel.in scripts/download.pl: make the download tool configurable 2022-10-20 00:35:19 +02:00
Config-images.in uml: make use of 'rootfs-part' feature 2022-01-23 19:48:31 +00:00
Config-kernel.in kernel: disable wireless extensions only when needed 2022-09-22 15:26:58 +02:00
check-uname.sh build: add HOST_OS_LINUX and HOST_OS_MACOS config symbols 2021-11-01 16:37:52 +01:00