Commit abffd1e4 authored by Alessandro Rubini's avatar Alessandro Rubini

build: fix download step (paths and scripts)

parent 2993e175
......@@ -10,7 +10,13 @@
at91bootstrap-3-3.0.tar.gz 059a3e99cd93727c642ab7843c714887 \
http://repository.timesys.com/buildsources/a/at91bootstrap-3/at91bootstrap-3-3.0/at91bootstrap-3-3.0.tar.gz
# FIXME: barebox and kernel are missing
# boot loader
barebox-2011.09.0.tar.bz2 0ea4940b7c5af5c50dcf75d4170a319d \
http://www.barebox.org/./download/barebox-2011.09.0.tar.bz2
# kernel
linux-2.6.39.tar.bz2 1aab7a741abe08d42e8eccf20de61e05 \
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.bz2
# buildroot core and packages
buildroot-2011.11.tar.bz2 7b852f4ef17c63857ca7b9388b782070 \
......@@ -47,7 +53,7 @@ gmp-5.0.2.tar.bz2 0bbaedc82fb30315b06b1588b9077cd3 \
http://ftp.gnu.org/pub/gnu/gmp/gmp-5.0.2.tar.bz2
gperf-3.0.4.tar.gz c1f1db32fb6598d6a93e6e88796a8632 \
http://ftp.gnu.org/pub/gnu/gperf/
http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz
iproute2-2.6.39.tar.gz 8a3b6bc77c2ecf752284aa4a6fc630a6 \
http://devresources.linuxfoundation.org/dev/iproute2/download/iproute2-2.6.39.tar.gz
......@@ -71,7 +77,7 @@ lua-5.1.4.tar.gz d0870f2de55d59c1c8419f36e8fac150 \
http://www.lua.org/ftp/lua-5.1.4.tar.gz
lzo-2.06.tar.gz 95380bd4081f85ef08c5209f4107e9f8 \
http://www.lzop.org/download/
http://www.lzop.org/download/lzo-2.06.tar.gz
m4-1.4.15.tar.bz2 c7c32540bc3842d5550f88d47ef551d8 \
http://ftp.gnu.org/pub/gnu/m4/m4-1.4.15.tar.bz2
......@@ -105,7 +111,6 @@ uClibc-0.9.32.tar.bz2 cfcb6c25d8ebe12817499d8749ee8ae1 \
udev-173.tar.bz2 91a88a359b60bbd074b024883cc0dbde \
http://www.kernel.org/pub//linux/utils/kernel/hotplug//udev-173.tar.bz2
http://sources.buildroot.net//udev-173.tar.bz2
zlib-1.2.5.tar.bz2 be1e89810e66150f5b0327984d8625a0 \
http://kent.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar.bz2
......
......@@ -143,18 +143,22 @@ wrs_download () {
# Download from upstream
wget -q $upstream -O $output
if [ -f $output ]; then
if [ -s $output ]; then
wrs_echo "Retrieved $file from upstream"
return
else
rm -f $output
fi
# Download from buildroot
wget -q http://sources.buildroot.net/$file
if [ -f $output ]; then
if [ -s $output ]; then
wrs_echo "Retrieved $file from sources.buildroot.net"
return
else
rm -f $output
fi
wrs_error "Cannot download $file"
wrs_err "Cannot download $file"
}
# The following builds one step if needed: if file $1 exists, then the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment