PKGBUILDs/alarm/uboot-olinuxino/PKGBUILD

43 lines
1,000 B
Bash
Raw Normal View History

2014-01-08 20:15:55 +00:00
# U-Boot for i.MX233-OLinuXino
2013-07-19 19:48:37 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2013-05-07 00:10:45 +00:00
# Contributor: Kiril Zyapkov <kiril.zyapkov@gmail.com>
buildarch=2
pkgname=uboot-olinuxino
pkgdesc="U-Boot for i.MX233-OLinuXino"
2016-03-16 00:00:40 +00:00
pkgver=2016.03
2014-01-08 20:15:55 +00:00
pkgrel=1
2013-05-07 00:10:45 +00:00
arch=('arm')
license=('GPL')
2015-06-09 02:05:46 +00:00
makedepends=('git' 'bc')
2013-05-07 00:10:45 +00:00
install=$pkgname.install
options=('!strip')
2016-02-08 01:51:58 +00:00
backup=('boot/uEnv.txt')
2013-05-07 00:10:45 +00:00
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2015-06-09 02:05:46 +00:00
'0001-arch-linux-arm-modifications.patch'
2014-01-08 20:15:55 +00:00
'uEnv.txt')
2016-03-16 00:00:40 +00:00
md5sums=('973c1d896be751321cc3aafa564f64b2'
2015-10-31 17:27:57 +00:00
'6b5f319d0b043e223629d001579c3a2e'
2015-06-09 02:05:46 +00:00
'd41d8cd98f00b204e9800998ecf8427e')
2013-05-07 00:10:45 +00:00
2013-07-19 19:48:37 +00:00
prepare() {
2013-05-07 00:10:45 +00:00
cd "$srcdir/u-boot-${pkgver}"
2015-06-09 02:05:46 +00:00
git apply ../0001-arch-linux-arm-modifications.patch
2013-07-19 19:48:37 +00:00
}
build() {
cd "$srcdir/u-boot-${pkgver}"
2013-05-07 00:10:45 +00:00
2014-01-08 20:15:55 +00:00
unset LDFLAGS CFLAGS CXXFLAGS
make distclean
2013-05-07 00:10:45 +00:00
make mx23_olinuxino_config
make u-boot.sb
}
package() {
2014-01-08 20:15:55 +00:00
mkdir -p "${pkgdir}/boot"
cp "${srcdir}/u-boot-${pkgver}"/u-boot.sb "${srcdir}"/uEnv.txt "${pkgdir}/boot"
2013-05-07 00:10:45 +00:00
}