PKGBUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Maintainer: André Silva <emulatorman@hyperbola.info>
  2. buildarch=4
  3. pkgbase=uboot-mx6_cubox-i
  4. pkgname=('uboot-mx6_cubox-i')
  5. pkgver=2013.10
  6. pkgrel=1
  7. arch=('armv7h')
  8. url="http://git.denx.de/u-boot.git/"
  9. license=('GPL')
  10. depends=('linux-libre')
  11. replaces=('uboot-cubox-i' 'uboot-cubox-i-linux-libre')
  12. conflicts=('uboot4extlinux-mx6_cubox-i' 'uboot4grub-mx6_cubox-i')
  13. option=('!strip')
  14. _commit=408544d61f230060f18ffe2e06565deadbcf3451
  15. source=("uboot-${_commit}.tar.gz::https://github.com/SolidRun/u-boot-imx6/archive/${_commit}.tar.gz"
  16. 'kernel-add-support-for-gcc-5.patch'
  17. 'arm_board_use_weak.patch'
  18. 'leds_missing_include.patch'
  19. 'remove_unnecessary_inits.patch'
  20. 'u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch'
  21. 'no-unalligned-access.patch'
  22. 'common-main.c-make-show_boot_progress-__weak.patch'
  23. 'parabola-modifications.patch')
  24. md5sums=('8dc15f4cf0b244a8d9598a2ce93056a4'
  25. '721a46867e189d8dedc6b6f86a536a34'
  26. 'b8cd082b76224d157d55404d0bc87831'
  27. 'cf823fe2da67b8db5b9de9352a815f91'
  28. '6f3d537701904f0244e6d857e2545c5d'
  29. '8ed91e4257bfb7e0971fa988342537a3'
  30. '629d34349b5652e2d4274ad89e1c4481'
  31. '8087672256020417438b12ec4946e1cf'
  32. '19178e6d85b6b8278fa70eee5db18f83')
  33. prepare() {
  34. cd u-boot-imx6-${_commit}
  35. patch -Np1 -i ../kernel-add-support-for-gcc-5.patch
  36. patch -Np1 -i ../arm_board_use_weak.patch
  37. patch -Np1 -i ../leds_missing_include.patch
  38. patch -Np1 -i ../remove_unnecessary_inits.patch
  39. patch -Np1 -i ../u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch
  40. patch -Np1 -i ../no-unalligned-access.patch
  41. patch -Np1 -i ../common-main.c-make-show_boot_progress-__weak.patch
  42. patch -Np1 -i ../parabola-modifications.patch
  43. }
  44. build() {
  45. cd u-boot-imx6-${_commit}
  46. unset CFLAGS
  47. unset CXXFLAGS
  48. unset LDFLAGS
  49. make distclean
  50. make mx6_cubox-i_config
  51. make
  52. }
  53. package() {
  54. pkgdesc="U-Boot for all CuBox-i variants"
  55. install=${pkgbase}.install
  56. cd u-boot-imx6-${_commit}
  57. mkdir -p "${pkgdir}"/boot
  58. cp u-boot.img "${pkgdir}"/boot
  59. cp SPL "${pkgdir}"/boot
  60. }