u-boot: add AML u-boot support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-23 17:11:56 +02:00
parent 2f0afe4cd7
commit 9efdc51beb
14 changed files with 102 additions and 12 deletions

View File

@ -41,11 +41,21 @@ fi
cd $PKG_BUILD
if [ "$UBOOT_VERSION" = "aml" ]; then
rm -f tools/ucl/libucl_linux.lib
make -C tools/ucl/ucl_cygwin_prj/
cp -f tools/ucl/ucl_cygwin_prj/objs/libucl.a tools/ucl/libucl_linux.lib
fi
make CROSS_COMPILE="$TARGET_PREFIX" ARCH="$TARGET_ARCH" $UBOOT_CONFIG
make CROSS_COMPILE="$TARGET_PREFIX" ARCH="$TARGET_ARCH" HOSTCC="$HOST_CC" HOSTSTRIP="true"
mkdir -p $ROOT/$TOOLCHAIN/bin
cp tools/mkimage $ROOT/$TOOLCHAIN/bin
if [ -f build/tools/mkimage ]; then
cp build/tools/mkimage $ROOT/$TOOLCHAIN/bin
else
cp tools/mkimage $ROOT/$TOOLCHAIN/bin
fi
if [ -r "$BOOT_CFG" ]; then
cp $BOOT_CFG boot.cfg

View File

@ -27,7 +27,11 @@ if [ -z "$UBOOT_CONFIGFILE" ]; then
fi
mkdir -p $INSTALL/usr/share/u-boot
cp $PKG_BUILD/u-boot.bin $INSTALL/usr/share/u-boot
if [ "$UBOOT_VERSION" = "aml" ]; then
cp $PKG_BUILD/build/u-boot-aml-ucl.bin $INSTALL/usr/share/u-boot/spi_M3_512.bin
else
cp $PKG_BUILD/u-boot.bin $INSTALL/usr/share/u-boot
fi
if [ -f "$PKG_BUILD/MLO" ]; then
cp $PKG_BUILD/MLO $INSTALL/usr/share/u-boot

View File

@ -19,12 +19,22 @@
################################################################################
PKG_NAME="u-boot"
PKG_VERSION="2011.03-rc1"
if [ "$UBOOT_VERSION" = "aml" ]; then
PKG_VERSION="aml-50dba31"
PKG_SITE="https://github.com/Pivosgroup/buildroot-uboot"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
elif [ "$UBOOT_VERSION" = "cubox" ]; then
PKG_VERSION="cubox-f826edd"
PKG_SITE="https://github.com/rabeeh/u-boot/tree/"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
else
PKG_VERSION="2011.03-rc1"
PKG_SITE="http://www.denx.de/wiki/U-Boot/WebHome"
PKG_URL="ftp://ftp.denx.de/pub/u-boot/$PKG_NAME-$PKG_VERSION.tar.bz2"
fi
PKG_REV="1"
PKG_ARCH="arm"
PKG_LICENSE="GPL"
PKG_SITE="http://www.denx.de/wiki/U-Boot/WebHome"
PKG_URL="ftp://ftp.denx.de/pub/u-boot/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
@ -34,9 +44,3 @@ PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems, us
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
if [ "$PROJECT" = "CuBox" ]; then
PKG_VERSION="cubox-f826edd"
PKG_SITE="https://github.com/rabeeh/u-boot/tree/"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
fi

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -92,9 +92,11 @@
GOLD_SUPPORT="yes"
# Bootloader to use (syslinux / u-boot / atv-bootloader)
# BOOTLOADER="atv-bootloader" disabled for now
BOOTLOADER="atv-bootloader"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader / bcm2835-bootloader)
BOOTLOADER="bcm2835-bootloader"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -94,6 +94,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

View File

@ -89,6 +89,9 @@
# Bootloader to use (syslinux / u-boot / atv-bootloader)
BOOTLOADER="syslinux"
# u-boot version to use (default / aml / cubox)
UBOOT_VERSION="default"
# Configuration for u-boot
UBOOT_CONFIG=""

43
tools/mkpkg/mkpkg_u-boot-aml Executable file
View File

@ -0,0 +1,43 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
echo "getting sources..."
if [ ! -d u-boot-aml.git ]; then
git clone git://github.com/Pivosgroup/buildroot-uboot.git u-boot-aml.git
fi
cd u-boot-aml.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf u-boot-aml-$GIT_REV
cp -R u-boot-aml.git u-boot-aml-$GIT_REV
echo "cleaning sources..."
rm -rf u-boot-aml-$GIT_REV/.git
echo "packing sources..."
tar cvJf u-boot-aml-$GIT_REV.tar.xz u-boot-aml-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf u-boot-aml-$GIT_REV