PKGBUILDs/alarm/uboot-odroid-xu3/PKGBUILD

63 lines
1.9 KiB
Bash
Raw Normal View History

2018-01-15 20:48:39 +00:00
# U-Boot: ODROID XU3/XU4/HC1
2014-08-22 15:37:57 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-odroid-xu3
2018-01-15 20:48:39 +00:00
pkgver=2018.01
2018-02-15 02:01:55 +00:00
pkgrel=2
pkgdesc="U-Boot for ODROID-XU3/XU4/HC1/HC2"
2014-08-22 15:37:57 +00:00
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')
2018-02-15 02:01:55 +00:00
makedepends=('bc' 'dtc145' 'git')
2016-08-20 20:32:53 +00:00
_commit=fe2f831fd44a4071f58a42f260164544697aa666
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2018-02-15 02:01:55 +00:00
'0001-ARM-Samsung-Add-Exynos5422-based-Odroid-HC1-support.patch'
2016-08-20 20:32:53 +00:00
"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"
2014-08-29 21:54:53 +00:00
'sd_fusing.sh'
2016-08-20 20:32:53 +00:00
'boot.txt'
'mkscr')
2018-01-15 20:48:39 +00:00
md5sums=('b42e45813369f4ae84490a481e531768'
2018-02-15 02:01:55 +00:00
'32190849dbeefab68897ce8ee6e2e033'
2016-08-20 20:32:53 +00:00
'38fb058aa3bcc568f9547c85517949b9'
'09c42bed980921cfc914e97e067ba9a3'
2014-08-22 15:37:57 +00:00
'fd01dda20b999e0b731c7063431a42b3'
2016-08-20 20:32:53 +00:00
'8a31acf5da5722698f54d1fe15c482bb'
'52306aa4cf2c3499ecfcea026fb2741c'
'021623a04afd29ac3f368977140cfbfd')
2018-02-15 02:01:55 +00:00
prepare() {
cd u-boot-${pkgver}
patch -p1 -i ../0001-ARM-Samsung-Add-Exynos5422-based-Odroid-HC1-support.patch
}
2016-08-20 20:32:53 +00:00
build() {
cd u-boot-${pkgver}
unset CFLAGS CXXFLAGS CPPFLAGS
make distclean
make odroid-xu3_config
2017-02-23 01:43:45 +00:00
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
2016-08-20 20:32:53 +00:00
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
}