File: download_uboot.sh

package info (click to toggle)
android-cuttlefish 1.0.1-0~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,192 kB
  • sloc: cpp: 39,149; sh: 2,523; javascript: 242; exp: 152; python: 125; makefile: 88
file content (16 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

UBOOT_GIT_URL_DEFAULT=https://source.denx.de/u-boot/u-boot.git
UBOOT_GIT_BRANCH_DEFAULT=master

if [ x"$UBOOT_GIT_URL" = x ]; then
    UBOOT_GIT_URL="$UBOOT_GIT_URL_DEFAULT"
fi

if [ x"$UBOOT_GIT_BRANCH" = x ]; then
    UBOOT_GIT_BRANCH="$UBOOT_GIT_BRANCH_DEFAULT"
fi

git clone --depth=1 --branch="${UBOOT_GIT_BRANCH}" "${UBOOT_GIT_URL}" u-boot