PKGBUILDs/alarm/uboot-dragonboard/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2016-10-16 00:16:10 +00:00
# U-Boot: Dragonboard 410c
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=8
pkgname=uboot-dragonboard
2017-01-15 23:56:28 +00:00
pkgver=2017.01
2016-10-16 00:16:10 +00:00
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')
2017-01-15 23:56:28 +00:00
md5sums=('ad2d82d5b4fa548b2b95bbc26c9bad79'
'83c37689d37ae2ab7ac5def663d65284'
2016-10-16 00:16:10 +00:00
'021623a04afd29ac3f368977140cfbfd')
build() {
cd u-boot-${pkgver/rc/-rc}
unset CFLAGS CXXFLAGS CPPFLAGS
make distclean
make dragonboard410c_config
2017-01-15 23:56:28 +00:00
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
2016-10-16 00:16:10 +00:00
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
}