PKGBUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # U-Boot: ChiliBoard
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. pkgname=uboot4extlinux-chiliboard
  5. pkgver=2014.07
  6. pkgrel=3.1
  7. pkgdesc="U-Boot with Extlinux support for ChiliBoard"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. conflicts=('uboot-chiliboard' 'uboot4grub-chiliboard')
  11. makedepends=('bc')
  12. license=('GPL')
  13. backup=(boot/extlinux/extlinux.conf)
  14. install=${pkgname}.install
  15. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  16. '0001-kernel-add-support-for-gcc-7.patch'
  17. '0002-ARM-asm-io.h-use-static-inline.patch'
  18. '0003-common-main.c-make-show_boot_progress-__weak.patch'
  19. '0004-common-board_f-cosmetic-use-__weak-for-leds.patch'
  20. '0005-chiliboard-support.patch'
  21. '0006-parabola-arm-modifications.patch'
  22. 'extlinux.conf'
  23. 'uEnv.txt')
  24. sha256sums=('b4f83b8db325c21671a997198ec3a373e2e00dde2fcf17be9b9afd7cfd727f56'
  25. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  26. '91b2711f36fbe1bae5d02b3a1eec81383ffd50a4b71426b82920cfd70af40237'
  27. '0bb7ddee0b33ba7ca830f09b6aaacc945c7a662749a19b128eb1cab71f5b100a'
  28. '2795b55f0ef03aef6c05fd074ab9839d0f89fdc5a3c99dd849eb74cd09e59045'
  29. 'af804b3dd8167c61c79dfc831d34558cf8ce981dfea3df9da7f98acaee2a0edf'
  30. '1fca49c07c65708a1b167560c73af12d59d7e5da92794f47ecf2a27d4f765793'
  31. '5cdafa8abc97f1f7b9395b4f1d39494509d0f225f41bd8f030d6f31d549ba64f'
  32. '7882bc2f75089c83c0c3b0a22bfb5a10d3700545e600f616910bd6cdecc79237')
  33. prepare() {
  34. cd u-boot-${pkgver}
  35. patch -Np1 -i ../0001-kernel-add-support-for-gcc-7.patch
  36. patch -Np1 -i ../0002-ARM-asm-io.h-use-static-inline.patch
  37. patch -Np1 -i ../0003-common-main.c-make-show_boot_progress-__weak.patch
  38. patch -Np1 -i ../0004-common-board_f-cosmetic-use-__weak-for-leds.patch
  39. patch -Np1 -i ../0005-chiliboard-support.patch
  40. patch -Np1 -i ../0006-parabola-arm-modifications.patch
  41. }
  42. build() {
  43. cd u-boot-${pkgver}
  44. unset CFLAGS CXXFLAGS LDFLAGS
  45. make distclean
  46. make chiliboard_config
  47. make
  48. }
  49. package() {
  50. cd u-boot-${pkgver}
  51. mkdir -p "${pkgdir}"/boot/extlinux
  52. cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  53. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  54. }