mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# U-Boot: Dragonboard 410c
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=8
|
|
|
|
pkgname=uboot-dragonboard
|
|
pkgver=2017.01
|
|
pkgrel=1
|
|
pkgdesc="U-Boot for Dragonboard 410c"
|
|
arch=('aarch64')
|
|
url='http://www.denx.de/wiki/U-Boot/WebHome'
|
|
license=('GPL')
|
|
install=$pkgname.install
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
|
makedepends=('bc' 'dtc' 'git' 'skales')
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
|
|
'boot.txt'
|
|
'mkscr')
|
|
md5sums=('ad2d82d5b4fa548b2b95bbc26c9bad79'
|
|
'83c37689d37ae2ab7ac5def663d65284'
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
build() {
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
unset CFLAGS CXXFLAGS CPPFLAGS
|
|
|
|
make distclean
|
|
make dragonboard410c_config
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
|
|
make EXTRAVERSION=-${pkgrel}
|
|
}
|
|
|
|
package() {
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
touch rd
|
|
dtbTool -o dt.img arch/arm/dts
|
|
mkbootimg --kernel=u-boot-dtb.bin --output=u-boot.img --dt=dt.img --pagesize 2048 --base 0x80000000 --ramdisk=rd --cmdline=""
|
|
cp u-boot.img ${pkgdir}/boot
|
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
|
|
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
|
|
}
|