mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-14 19:41:55 +00:00
28 lines
701 B
Bash
28 lines
701 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
# Source our common vars
|
||
|
scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
. ${scripts_path}/vars.sh
|
||
|
|
||
|
debug_msg "Starting 02_download_dependencies.sh"
|
||
|
|
||
|
# Make sure our BuildEnv dir exists
|
||
|
if [ ! -d ${root_path}/downloads ]; then
|
||
|
mkdir ${root_path}/downloads
|
||
|
fi
|
||
|
|
||
|
# Toolchain
|
||
|
if [ ! -f ${root_path}/downloads/${toolchain_filename} ]; then
|
||
|
debug_msg "Downloading toolchain..."
|
||
|
wget ${toolchain_url} -P ${root_path}/downloads
|
||
|
fi
|
||
|
|
||
|
# Kernel
|
||
|
if [ ! -f ${root_path}/downloads/${kernel_filename} ]; then
|
||
|
debug_msg "Downloading Kernel..."
|
||
|
wget ${kernel_src} -O ${root_path}/downloads/${kernel_filename}
|
||
|
fi
|
||
|
|
||
|
debug_msg "Finished 02_download_dependencies.sh"
|