mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
42 lines
1,000 B
Bash
42 lines
1,000 B
Bash
# U-Boot for i.MX233-OLinuXino
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# Contributor: Kiril Zyapkov <kiril.zyapkov@gmail.com>
|
|
|
|
buildarch=2
|
|
|
|
pkgname=uboot-olinuxino
|
|
pkgdesc="U-Boot for i.MX233-OLinuXino"
|
|
pkgver=2016.01
|
|
pkgrel=1
|
|
arch=('arm')
|
|
license=('GPL')
|
|
makedepends=('git' 'bc')
|
|
install=$pkgname.install
|
|
options=('!strip')
|
|
backup=('boot/uEnv.txt')
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
|
'0001-arch-linux-arm-modifications.patch'
|
|
'uEnv.txt')
|
|
md5sums=('7d4f65fd43d4d706f5c5650e020d899d'
|
|
'6b5f319d0b043e223629d001579c3a2e'
|
|
'd41d8cd98f00b204e9800998ecf8427e')
|
|
|
|
prepare() {
|
|
cd "$srcdir/u-boot-${pkgver}"
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/u-boot-${pkgver}"
|
|
|
|
unset LDFLAGS CFLAGS CXXFLAGS
|
|
|
|
make distclean
|
|
make mx23_olinuxino_config
|
|
make u-boot.sb
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "${pkgdir}/boot"
|
|
cp "${srcdir}/u-boot-${pkgver}"/u-boot.sb "${srcdir}"/uEnv.txt "${pkgdir}/boot"
|
|
}
|