Commit 17d24d3d authored by Guido Gunther's avatar Guido Gunther

build-image: use local variales in fetch_nitrogen_uboot_upgrade

instead of the global pureos_board
parent e2c36c33
......@@ -17,15 +17,15 @@ usage() {
fetch_nitrogen_uboot_upgrade() {
board=$1
url=$2
out="$3"
dest="${out}/uboot-${pureos_board}"
local board="$1"
local url="$2"
local out="$3"
dest="${out}/uboot-${board}"
[ ! -d "${dest}" ] || return 0
echo -n "Fetching uboot upgrade..."
wget -q -Ascr -Aupgrade -A"*nitrogen*" -P"${dest}" -nd -l 1 --mirror "${url}/uboot-${pureos_board}/"
wget -q -Ascr -Aupgrade -A"*nitrogen*" -P"${dest}" -nd -l 1 --mirror "${url}/uboot-${board}/"
echo "done."
}
......@@ -74,7 +74,7 @@ if [ -n "${kernel_deb}" -a ! -f "files/${kernel_deb}" ]; then
wget -Pfiles/ "${kernel_url}/${kernel_deb}"
fi
[ "${board_type}" != "nitrogen6" ] || fetch_nitrogen_uboot_upgrade ${pureos_board} ${kernel_url} files/
[ "${board_type}" != "nitrogen6" ] || fetch_nitrogen_uboot_upgrade "${pureos_board}" "${kernel_url}" files/
set -x
......
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