diff options
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/scripts/functions b/scripts/functions index 7150b5ba..973ba3f6 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1719,27 +1719,34 @@ CT_Mirrors() echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro" ;; kernel.org) - # TBD move to linux.sh? - if [ "${project}" != "linux" ]; then - echo "-unknown-" - fi - local version="${CT_LINUX_VERSION}" - case "${version}" in - '') - # Ignore, this happens before .config is fully evaluated - ;; - [34].*) - echo "http://www.kernel.org/pub/linux/kernel/v${version%%.*}.x" - ;; - 2.6.*) - echo "http://www.kernel.org/pub/linux/kernel/v2.6" + # TBD move to linux.sh and dtc.sh? + case "${project}" in + linux) + local version="${CT_LINUX_VERSION}" case "${version}" in - 2.6.*.*) - echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm" - echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v${version%.*}" + '') + # Ignore, this happens before .config is fully evaluated + ;; + [34].*) + echo "http://www.kernel.org/pub/linux/kernel/v${version%%.*}.x" + ;; + 2.6.*) + echo "http://www.kernel.org/pub/linux/kernel/v2.6" + case "${version}" in + 2.6.*.*) + echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm" + echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v${version%.*}" + ;; + esac + ;; + *) + echo "-unknown-" ;; esac ;; + dtc) + echo "https://mirrors.edge.kernel.org/pub/software/utils/dtc" + ;; *) echo "-unknown-" ;; |