PKGBUILDs/alarm/uboot-odroid-xu3/PKGBUILD

62 lines
1.8 KiB
Bash
Raw Normal View History

2014-08-22 15:37:57 +00:00
# U-Boot: ODROID XU3
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-odroid-xu3
2016-12-02 02:11:10 +00:00
pkgver=2016.11
pkgrel=1
2014-08-22 15:37:57 +00:00
pkgdesc="U-Boot for ODROID-XU3"
arch=('armv7h')
2016-08-20 20:32:53 +00:00
url='http://www.denx.de/wiki/U-Boot/WebHome'
2014-08-22 15:37:57 +00:00
license=('GPL')
2014-08-29 21:54:53 +00:00
install=$pkgname.install
2016-08-20 20:32:53 +00:00
backup=('boot/boot.txt' 'boot/boot.scr')
makedepends=('bc' 'dtc' 'git')
_commit=fe2f831fd44a4071f58a42f260164544697aa666
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
"bl1.bin::https://github.com/hardkernel/u-boot/raw/${_commit}/sd_fuse/hardkernel/bl1.bin.hardkernel"
'http://archlinuxarm.org/builder/src/xu3/bl2.bin'
"tzsw.bin::https://github.com/hardkernel/u-boot/raw/${_commit}/sd_fuse/hardkernel/tzsw.bin.hardkernel"
'0001-arch-linux-arm-modifications.patch'
2014-08-29 21:54:53 +00:00
'sd_fusing.sh'
2016-08-20 20:32:53 +00:00
'boot.txt'
'mkscr')
2016-12-02 02:11:10 +00:00
md5sums=('ca1f6e019d08aff8d0ca1beb2e66737d'
2016-08-20 20:32:53 +00:00
'38fb058aa3bcc568f9547c85517949b9'
'09c42bed980921cfc914e97e067ba9a3'
2014-08-22 15:37:57 +00:00
'fd01dda20b999e0b731c7063431a42b3'
2016-12-02 02:11:10 +00:00
'683f66010666783d086af222c052d57e'
2016-08-20 20:32:53 +00:00
'8a31acf5da5722698f54d1fe15c482bb'
'52306aa4cf2c3499ecfcea026fb2741c'
'021623a04afd29ac3f368977140cfbfd')
prepare() {
cd u-boot-${pkgver}
git apply ../0001-arch-linux-arm-modifications.patch
}
build() {
cd u-boot-${pkgver}
unset CFLAGS CXXFLAGS CPPFLAGS
make distclean
make odroid-xu3_config
make EXTRAVERSION=-${pkgrel}
}
2014-08-22 15:37:57 +00:00
package() {
2016-08-20 20:32:53 +00:00
cd u-boot-${pkgver}
2014-08-22 15:37:57 +00:00
mkdir -p "${pkgdir}"/boot
2016-08-20 20:32:53 +00:00
cp u-boot-dtb.bin ${pkgdir}/boot/u-boot.bin
cp ../{{bl{1,2},tzsw}.bin,sd_fusing.sh} "${pkgdir}"/boot
2014-08-29 21:54:53 +00:00
chmod +x "${pkgdir}"/boot/sd_fusing.sh
2016-08-20 20:32:53 +00:00
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
2014-08-22 15:37:57 +00:00
}