PKGBUILD 1.8 KB

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