PKGBUILD 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # U-Boot: Wandboard
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgname=uboot-wandboard
  5. pkgver=2015.10
  6. pkgrel=1.parabola1
  7. pkgdesc="U-Boot for Wandboard"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. makedepends=('bc')
  12. depends=('linux-libre')
  13. replaces=('uboot-wandboard-solo' 'uboot-wandboard-dual' 'uboot-wandboard-quad' 'uboot-wandboard-linux-libre')
  14. conflicts=('uboot4extlinux-wandboard' 'uboot4grub-wandboard')
  15. install=${pkgname}.install
  16. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  17. '0001-parabola-arm-modifications.patch')
  18. md5sums=('7c203b0fc3390a122d8e8b75f147eac5'
  19. '87a2643750ab2152c6c91415e3949807')
  20. prepare() {
  21. cd u-boot-${pkgver}
  22. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  23. }
  24. build() {
  25. cd u-boot-${pkgver}
  26. unset LDFLAGS
  27. make distclean
  28. make wandboard_defconfig
  29. make
  30. }
  31. package() {
  32. cd u-boot-${pkgver}
  33. mkdir -p "${pkgdir}"/boot
  34. cp SPL u-boot.img "${pkgdir}"/boot
  35. }