PKGBUILDs/alarm/uboot-olinuxino/PKGBUILD

47 lines
1.2 KiB
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"
2014-01-08 20:15:55 +00:00
pkgver=2013.10
pkgrel=1
2013-05-07 00:10:45 +00:00
arch=('arm')
license=('GPL')
depends=('coreutils')
2014-01-08 20:15:55 +00:00
makedepends=('elftosb')
2013-05-07 00:10:45 +00:00
install=$pkgname.install
options=('!strip')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2014-01-08 20:15:55 +00:00
"https://raw.github.com/eewiki/u-boot-patches/master/v${pkgver}/0001-mx23_olinuxino-uEnv.txt-bootz-n-fixes.patch"
'alarm.patch'
'uEnv.txt')
md5sums=('a076a044b64371edc52f7e562b13f6b2'
'71b2ee3b801b0265e5a316b9fc8d5f45'
'6d183eca7b72b51c207e7fad23459659'
'239b6223bbfe21e0cad629723a3abc2d')
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}"
2014-01-08 20:15:55 +00:00
patch -Np1 -i ../0001-mx23_olinuxino-uEnv.txt-bootz-n-fixes.patch
patch -Np1 -i ../alarm.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
}