summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-11-19 23:17:37 (GMT)
committerAlexey Neyman <stilor@att.net>2018-11-28 08:30:10 (GMT)
commitda76ae3ea3ba523223fe61b3b40974254a389141 (patch)
tree12affa1c2a39bf58f0a1720a76c1dfa0dc246b90 /scripts/functions
parent951afda5088f202eead14e3ae281f234b160af0b (diff)
Add DTC as a companion tool
(needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions41
1 files changed, 24 insertions, 17 deletions
diff --git a/scripts/functions b/scripts/functions
index 7150b5b..973ba3f 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-"
;;