PKGBUILD 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # U-Boot: UDOO
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgbase=uboot4grub-udoo
  5. pkgname=('uboot4grub-udoo_dl' 'uboot4grub-udoo_quad')
  6. pkgver=2015.01
  7. pkgrel=1
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. makedepends=('bc')
  12. depends=('grub-udoo')
  13. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  14. '0001-parabola-arm-modifications+grub-support.patch'
  15. '0002-kernel-add-support-for-gcc-5.patch')
  16. md5sums=('7f08dc9e98a71652bd6968888ed6ec95'
  17. 'e2176de47d43fc4e75e4752a7622021d'
  18. '721a46867e189d8dedc6b6f86a536a34')
  19. prepare() {
  20. cd u-boot-${pkgver}
  21. patch -Np1 -i ../0001-parabola-arm-modifications+grub-support.patch
  22. patch -Np1 -i ../0002-kernel-add-support-for-gcc-5.patch
  23. }
  24. build() {
  25. cd u-boot-${pkgver}
  26. unset CFLAGS CXXFLAGS LDFLAGS
  27. mkdir bins
  28. for i in dl quad; do
  29. make distclean
  30. make udoo_${i}_config
  31. make
  32. mv u-boot.imx bins/u-boot-${i}.imx
  33. done
  34. }
  35. package_uboot4grub-udoo_dl() {
  36. pkgdesc="U-Boot with GRUB support for UDOO Dual"
  37. replaces=('uboot-udoo-dual' 'uboot-udoo-dual-linux-libre'
  38. 'uboot-udoo-dual-linux-libre-lts' 'uboot-udoo-dual-linux-libre-grsec'
  39. 'uboot-udoo-dual-linux-libre-pck' 'uboot-udoo-dual-linux-libre-knock'
  40. 'uboot-udoo-dual-linux-libre-lts-knock' 'uboot-udoo-dual-linux-libre-audit'
  41. 'uboot-udoo-dual-linux-libre-rt' 'uboot-udoo-dual-linux-libre-grsec-knock')
  42. conflicts=('uboot4grub' 'uboot-udoo-dual' 'uboot-udoo-dual-linux-libre'
  43. 'uboot-udoo-dual-linux-libre-lts' 'uboot-udoo-dual-linux-libre-grsec'
  44. 'uboot-udoo-dual-linux-libre-pck' 'uboot-udoo-dual-linux-libre-knock'
  45. 'uboot-udoo-dual-linux-libre-lts-knock' 'uboot-udoo-dual-linux-libre-audit'
  46. 'uboot-udoo-dual-linux-libre-rt' 'uboot-udoo-dual-linux-libre-grsec-knock')
  47. provides=('uboot4grub' 'uboot-udoo-dual')
  48. install=${pkgbase}.install
  49. mkdir -p "${pkgdir}"/boot
  50. cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx
  51. }
  52. package_uboot4grub-udoo_quad() {
  53. pkgdesc="U-Boot with GRUB support for UDOO Quad"
  54. replaces=('uboot-udoo-quad' 'uboot-udoo-quad-linux-libre'
  55. 'uboot-udoo-quad-linux-libre-lts' 'uboot-udoo-quad-linux-libre-grsec'
  56. 'uboot-udoo-quad-linux-libre-pck' 'uboot-udoo-quad-linux-libre-knock'
  57. 'uboot-udoo-quad-linux-libre-lts-knock' 'uboot-udoo-quad-linux-libre-audit'
  58. 'uboot-udoo-quad-linux-libre-rt' 'uboot-udoo-quad-linux-libre-grsec-knock')
  59. conflicts=('uboot4grub' 'uboot-udoo-quad' 'uboot-udoo-quad-linux-libre'
  60. 'uboot-udoo-quad-linux-libre-lts' 'uboot-udoo-quad-linux-libre-grsec'
  61. 'uboot-udoo-quad-linux-libre-pck' 'uboot-udoo-quad-linux-libre-knock'
  62. 'uboot-udoo-quad-linux-libre-lts-knock' 'uboot-udoo-quad-linux-libre-audit'
  63. 'uboot-udoo-quad-linux-libre-rt' 'uboot-udoo-quad-linux-libre-grsec-knock')
  64. provides=('uboot4grub' 'uboot-udoo-quad')
  65. install=${pkgbase}.install
  66. mkdir -p "${pkgdir}"/boot
  67. cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
  68. }