PKGBUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # U-Boot: BeagleBone Green
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. pkgname=uboot-am335x_green
  4. _gitver='d5abcf94c7123167725fc22ace342f0d455093c1'
  5. pkgver=20170328.g${_gitver:0:10}
  6. pkgrel=1
  7. pkgdesc="U-Boot for BeagleBone Green (git version)"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. makedepends=('git' 'bc' 'uboot-tools')
  11. depends=('linux-libre')
  12. replaces=('uboot-beaglebone')
  13. conflicts=('uboot4extlinux-am335x_bone' 'uboot4grub-am335x_bone'
  14. 'grub-am335x_bone' 'uboot-am335x_bone')
  15. license=('GPL')
  16. install=${pkgname}.install
  17. source=("u-boot-${_gitver:0:10}::git+http://git.denx.de/u-boot.git"
  18. '0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'
  19. '0002-Forward-port-parabola-patch.patch'
  20. '0003-Beaglebone-green.patch'
  21. 'uEnv.txt'
  22. 'boot.cmd')
  23. sha256sums=('SKIP'
  24. 'c02bdad650f62e5fc465a2113f9b8c19f55833afc99d14230952cce712496502'
  25. 'ca21d84c57f31878ee3288f52450dc09d5dc9de807de77d5bdf7d9b88d8dba59'
  26. '7a659bf26d6c126da41723b6005d95fe0bb1e989ee42134104fbb757bb108c90'
  27. '4ef3c3177e4476cdb1790dd021d2383ef9913c029d005ffbeb61b958e753672e'
  28. '34e920015ba60acebd443b5d4d9b060cc9ae8aa6ed5f405f86645b6cdec0dbc1')
  29. prepare() {
  30. cd u-boot-${_gitver:0:10}
  31. git reset --hard ${_gitver}
  32. patch -Np1 -i ../0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
  33. patch -Np1 -i ../0002-Forward-port-parabola-patch.patch
  34. patch -Np1 -i ../0003-Beaglebone-green.patch
  35. }
  36. build() {
  37. cd u-boot-${_gitver:0:10}
  38. unset CFLAGS CXXFLAGS LDFLAGS
  39. make distclean
  40. make am335x_evm_config
  41. make
  42. mkimage -A arm -O linux -T script -C none -d "${srcdir}"/boot.cmd boot.scr
  43. }
  44. package() {
  45. cd u-boot-${_gitver:0:10}
  46. mkdir -p "${pkgdir}"/boot
  47. cp MLO u-boot.img boot.scr "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  48. }