PKGBUILDs/alarm/uboot-beaglebone/PKGBUILD

49 lines
1.3 KiB
Bash
Raw Normal View History

2013-08-10 00:06:59 +00:00
# U-Boot: Beaglebone and Beaglebone Black
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-beaglebone
2017-09-02 20:54:53 +00:00
pkgver=2017.07
2015-06-07 23:53:27 +00:00
pkgrel=1
2013-08-10 00:06:59 +00:00
pkgdesc="U-Boot for Beaglebone and Beaglebone Black"
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
2017-09-02 20:54:53 +00:00
makedepends=('bc' 'dtc' 'git')
2013-08-10 00:06:59 +00:00
license=('GPL')
2015-06-07 23:53:27 +00:00
install=${pkgname}.install
2017-09-02 20:54:53 +00:00
backup=('boot/boot.txt' 'boot/boot.scr')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
2015-06-07 23:53:27 +00:00
'0001-arch-linux-arm-modifications.patch'
2017-09-02 20:54:53 +00:00
'boot.txt'
'mkscr')
md5sums=('b74741e7a9ad1cf9a5bfa87302b80f2b'
'a0bc17acb85fc3f04f74f6a87453ac97'
'd9fd8313c6e8b6d217676a69c3813a95'
'021623a04afd29ac3f368977140cfbfd')
2013-08-10 00:06:59 +00:00
prepare() {
2017-09-02 20:54:53 +00:00
cd u-boot-${pkgver/rc/-rc}
2015-06-07 23:53:27 +00:00
git apply ../0001-arch-linux-arm-modifications.patch
2013-08-10 00:06:59 +00:00
}
build() {
2017-09-02 20:54:53 +00:00
cd u-boot-${pkgver/rc/-rc}
2013-08-10 00:06:59 +00:00
2015-06-07 23:53:27 +00:00
unset CFLAGS CXXFLAGS LDFLAGS
2013-08-10 00:06:59 +00:00
make distclean
2017-09-02 20:54:53 +00:00
make am335x_boneblack_defconfig
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
make EXTRAVERSION=-${pkgrel}
2013-08-10 00:06:59 +00:00
}
package() {
2017-09-02 20:54:53 +00:00
cd u-boot-${pkgver/rc/-rc}
2013-08-10 00:06:59 +00:00
mkdir -p "${pkgdir}"/boot
2017-09-02 20:54:53 +00:00
cp MLO u-boot.img "${pkgdir}"/boot
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
2013-08-10 00:06:59 +00:00
}