PKGBUILDs/alarm/uboot-pandaboard/PKGBUILD

45 lines
1 KiB
Bash
Raw Normal View History

2013-07-19 19:54:57 +00:00
# U-Boot: Pandaboard and Pandaboard ES
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2013-07-19 20:14:45 +00:00
buildarch=4
2013-07-19 19:54:57 +00:00
pkgname=uboot-pandaboard
2014-05-17 20:00:54 +00:00
pkgver=2014.04
pkgrel=1
2013-07-19 19:54:57 +00:00
pkgdesc="U-Boot for Pandaboard and Pandaboard ES"
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
2014-05-17 20:00:54 +00:00
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
2013-07-19 19:54:57 +00:00
'http://raw.github.com/eewiki/u-boot-patches/master/v${pkgver}/0001-omap4_common-uEnv.txt-bootz-n-fixes.patch'
'alarm.patch'
'uEnv.txt')
2014-05-17 20:00:54 +00:00
md5sums=('6d2116d1385a66e9a59742caa9d62a54'
'd796b672643d92f6b43b4ba74e8a244f'
'119804f59c0b392c70bcdc67dc220ae0'
'76589e692f164699f5d8c7202af1f4fc')
2013-07-19 19:54:57 +00:00
prepare() {
2014-05-17 20:00:54 +00:00
cd u-boot-${pkgver}
2014-01-08 03:05:06 +00:00
2014-05-17 20:00:54 +00:00
patch -Np1 -i "${srcdir}"/0001-omap4_common-uEnv.txt-bootz-n-fixes.patch
patch -Np1 -i "${srcdir}"/alarm.patch
2013-07-19 19:54:57 +00:00
}
build() {
2014-05-17 20:00:54 +00:00
cd u-boot-${pkgver}
2014-01-08 03:05:06 +00:00
unset LDFLAGS
2013-07-19 19:54:57 +00:00
make distclean
make omap4_panda_config
make
}
package() {
2014-05-17 20:00:54 +00:00
cd u-boot-${pkgver}
2013-07-19 19:54:57 +00:00
mkdir -p "${pkgdir}"/boot
cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
}