PKGBUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # U-Boot: UDOO
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. pkgname=uboot4extlinux-udoo
  5. pkgver=2016.11
  6. pkgrel=1.1
  7. pkgdesc="U-Boot with Extlinux support for UDOO Dual and Quad"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. conflicts=('uboot-udoo' 'uboot4grub-udoo')
  11. replaces=('uboot4extlinux-udoo_dl' 'uboot4extlinux-udoo_quad')
  12. license=('GPL')
  13. makedepends=('bc' 'swig')
  14. backup=(boot/extlinux/extlinux.conf)
  15. install=${pkgname}.install
  16. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
  17. '0001-parabola-arm-modifications.patch'
  18. '0002-kernel-add-support-for-gcc-7.patch'
  19. 'extlinux.conf')
  20. sha256sums=('45813e6565dcc0436abe6752624324cdbf5f3ac106570d76d32b46ec529bcdc8'
  21. '5a93f489208f0f2e9415779770827024e24ca717438c0998499b59b59cd6189d'
  22. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  23. '7398bad545ed40e7809badc2ef0211796402187c1e307e7bd86972624ce4e1bb')
  24. prepare() {
  25. cd u-boot-${pkgver/rc/-rc}
  26. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  27. patch -Np1 -i ../0002-kernel-add-support-for-gcc-7.patch
  28. }
  29. build() {
  30. cd u-boot-${pkgver/rc/-rc}
  31. unset CFLAGS CXXFLAGS LDFLAGS
  32. make distclean
  33. make udoo_defconfig
  34. make EXTRAVERSION=-${pkgrel}
  35. }
  36. package_uboot4extlinux-udoo() {
  37. cd u-boot-${pkgver/rc/-rc}
  38. mkdir -p "${pkgdir}"/boot/extlinux
  39. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  40. cp SPL u-boot.img "${pkgdir}"/boot
  41. }