PKGBUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # U-Boot: Wandboard
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. pkgname=uboot4extlinux-wandboard
  5. pkgver=2015.10
  6. pkgrel=4.1
  7. pkgdesc="U-Boot with Extlinux support for Wandboard"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. makedepends=('bc')
  12. conflicts=('uboot-wandboard' 'uboot4grub-wandboard')
  13. install=${pkgname}.install
  14. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  15. '0001-parabola-arm-modifications.patch'
  16. '0002-kernel-add-support-for-gcc-7.patch'
  17. 'extlinux.conf')
  18. sha256sums=('bdc68d5f9455ad933b059c735d983f2c8b6b552dafb062e5ff1444f623021955'
  19. 'a49c942b3cd676ce3550d0f2cdb80086b5df0f74c669b11ba2420ebfc878dc8c'
  20. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  21. '6423fe8e131298f9827fecd48da5859bc876c27c7ed1e11bf95844f258c04626')
  22. prepare() {
  23. cd u-boot-${pkgver}
  24. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  25. patch -Np1 -i ../0002-kernel-add-support-for-gcc-7.patch
  26. }
  27. build() {
  28. cd u-boot-${pkgver}
  29. unset LDFLAGS
  30. make distclean
  31. make wandboard_defconfig
  32. make
  33. }
  34. package() {
  35. cd u-boot-${pkgver}
  36. mkdir -p "${pkgdir}"/boot/extlinux
  37. cp SPL u-boot.img "${pkgdir}"/boot
  38. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  39. }