Toradex initial support

This commit is contained in:
Igor Pečovnik 2016-01-06 12:58:06 +01:00
parent 9fcc1cbea2
commit ec670ed4e2
2 changed files with 29 additions and 3 deletions

View File

@ -252,7 +252,7 @@
MODULES_NEXT=""
SERIALCON="ttyS3"
;;
odroidxu4)#enabled
#description Exynos5422 XU3/XU4 octa core
#build 1
@ -264,6 +264,16 @@
SERIALCON="ttySAC2"
;;
toradex)#enabled
#description Freescale iMx
#build 3wip
LINUXFAMILY="toradex"
BOOTCONFIG="colibri_imx6_defconfig"
MODULES=""
MODULES_NEXT=""
SERIALCON="ttymxc0"
;;
*) echo "Board configuration not found"
exit
;;
@ -386,6 +396,21 @@
UBOOT_DEV_SOURCE=$UBOOT_DEFAULT_SOURCE
;;
toradex)
KERNEL_DEFAULT="git://git.toradex.com/linux-toradex.git"
KERNEL_DEFAULT_BRANCH="toradex_imx_3.14.28_1.0.0_ga"
KERNEL_DEFAULT_SOURCE="linux-toradex"
UBOOT_DEFAULT="git://git.toradex.com/u-boot-toradex.git"
UBOOT_DEFAULT_BRANCH="2015.04-toradex"
UBOOT_DEFAULT_SOURCE="u-boot-toradex"
UBOOT_NEXT=$UBOOT_DEFAULT
UBOOT_NEXT_BRANCH=$UBOOT_DEFAULT_BRANCH
UBOOT_NEXT_SOURCE=$UBOOT_DEFAULT_SOURCE
UBOOT_DEV=$UBOOT_DEFAULT
UBOOT_DEV_BRANCH=$UBOOT_DEFAULT_BRANCH
UBOOT_DEV_SOURCE=$UBOOT_DEFAULT_SOURCE
;;
*) echo "Defaults not found"
exit
;;

View File

@ -80,8 +80,9 @@ if [ -d "$SOURCES/$2/$GITHUBSUBDIR" ]; then
PULL=$(git pull)
else
if [[ -n $3 && -n "$(git ls-remote $1 | grep "$tag")" ]]; then
display_alert "... creating a shallow clone" "$2 $3" "info"
git clone -n $1 $SOURCES/$2/$GITHUBSUBDIR -b $3 --depth 1
display_alert "... creating a shallow clone" "$2 $3" "info"
# Toradex git's doesn't support shallow clone. Need different solution than this.
git clone -n $1 $SOURCES/$2/$GITHUBSUBDIR -b $3 --depth 1 || git clone -n $1 $SOURCES/$2/$GITHUBSUBDIR -b $3
cd $SOURCES/$2/$GITHUBSUBDIR
git checkout -q $3
else