PKGBUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # U-Boot: BeagleBoard and BeagleBoard-xM
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgname=uboot-omap3_beagle
  5. pkgver=2016.01
  6. pkgrel=1
  7. pkgdesc="U-Boot for BeagleBoard and BeagleBoard-xM"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. replaces=('uboot-beagleboard-linux-libre' 'uboot-beagleboard-linux-libre-lts'
  12. 'uboot-beagleboard-linux-libre-grsec' 'uboot-beagleboard-linux-libre-pck'
  13. 'uboot-beagleboard')
  14. conflicts=('uboot4extlinux-omap3_beagle' 'uboot4grub-omap3_beagle')
  15. makedepends=('bc')
  16. depends=('linux-libre')
  17. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  18. '0001-parabola-arm-modifications.patch'
  19. 'uEnv.txt')
  20. md5sums=('7d4f65fd43d4d706f5c5650e020d899d'
  21. '7922da50052c9ca5feb6f0356415d7eb'
  22. 'd41d8cd98f00b204e9800998ecf8427e')
  23. prepare() {
  24. cd u-boot-${pkgver}
  25. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  26. }
  27. build() {
  28. cd u-boot-${pkgver}
  29. unset LDFLAGS CFLAGS CXXFLAGS
  30. make distclean
  31. make omap3_beagle_config
  32. make
  33. }
  34. package() {
  35. cd u-boot-${pkgver}
  36. mkdir -p "${pkgdir}"/boot
  37. cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  38. }