PKGBUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # U-Boot: BeagleBone and BeagleBone Black
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid.info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. # Contributor: Jookia <166291@gmail.com>
  5. # Contributor: Márcio Silva <coadde@hyperbola.info>
  6. pkgname=uboot4extlinux-am335x_bone
  7. pkgver=2015.04
  8. pkgrel=4.1
  9. pkgdesc="U-Boot with Extlinux support for BeagleBone and BeagleBone Black"
  10. arch=('armv7h')
  11. url="http://git.denx.de/u-boot.git/"
  12. conflicts=('uboot-am335x_bone' 'uboot4grub-am335x_bone')
  13. makedepends=('bc')
  14. license=('GPL')
  15. backup=(boot/extlinux/extlinux.conf)
  16. install=${pkgname}.install
  17. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  18. '0001-parabola-arm-modifications.patch'
  19. '0002-kernel-add-support-for-gcc-7.patch'
  20. 'extlinux.conf'
  21. 'uEnv.txt')
  22. sha256sums=('0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60'
  23. 'ba5c395e5250fa13d608823e278936862d4fc472cfbf24dc94d9d90e5d9360b7'
  24. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  25. '5cdafa8abc97f1f7b9395b4f1d39494509d0f225f41bd8f030d6f31d549ba64f'
  26. '4ef3c3177e4476cdb1790dd021d2383ef9913c029d005ffbeb61b958e753672e')
  27. prepare() {
  28. cd u-boot-${pkgver}
  29. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  30. patch -Np1 -i ../0002-kernel-add-support-for-gcc-7.patch
  31. }
  32. build() {
  33. cd u-boot-${pkgver}
  34. unset CFLAGS CXXFLAGS LDFLAGS
  35. make distclean
  36. make am335x_evm_config
  37. make
  38. }
  39. package() {
  40. cd u-boot-${pkgver}
  41. mkdir -p "${pkgdir}"/boot/extlinux
  42. cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  43. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  44. }