PKGBUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # U-Boot: ChiliBoard
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgname=uboot-chiliboard
  5. pkgver=2014.07
  6. pkgrel=1.parabola1
  7. pkgdesc="U-Boot for ChiliBoard"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. replaces=('uboot-chiliboard-linux-libre')
  11. conflicts=('uboot4extlinux-chiliboard' 'uboot4grub-chiliboard')
  12. makedepends=('bc')
  13. depends=('linux-libre')
  14. license=('GPL')
  15. install=${pkgname}.install
  16. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  17. '0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch'
  18. '0002-ARM-asm-io.h-use-static-inline.patch'
  19. '0003-common-main.c-make-show_boot_progress-__weak.patch'
  20. '0004-common-board_f-cosmetic-use-__weak-for-leds.patch'
  21. '0005-chiliboard-support.patch'
  22. '0006-parabola-arm-modifications.patch'
  23. 'uEnv.txt')
  24. md5sums=('36d4bad687edcafa396fee607e505d4e'
  25. 'e070e8b5cf8628b6440dfc9dbd87cb65'
  26. '318310de19110167fe15ceac3ae32f7d'
  27. '1792346431786e1442c4059cd3f288ed'
  28. '2a32a77f123391c02935754ced2743c2'
  29. '5951c799b35c526f02edbcb3eb1295fc'
  30. '1bc6fd3299a42e15c5f14741aac15052'
  31. '0afad1f6f3f8609db6e1f5bb322b2a1a')
  32. prepare() {
  33. cd u-boot-${pkgver}
  34. patch -Np1 -i ../0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch
  35. patch -Np1 -i ../0002-ARM-asm-io.h-use-static-inline.patch
  36. patch -Np1 -i ../0003-common-main.c-make-show_boot_progress-__weak.patch
  37. patch -Np1 -i ../0004-common-board_f-cosmetic-use-__weak-for-leds.patch
  38. patch -Np1 -i ../0005-chiliboard-support.patch
  39. patch -Np1 -i ../0006-parabola-arm-modifications.patch
  40. }
  41. build() {
  42. cd u-boot-${pkgver}
  43. unset CFLAGS CXXFLAGS LDFLAGS
  44. make distclean
  45. make chiliboard_config
  46. make
  47. }
  48. package() {
  49. cd u-boot-${pkgver}
  50. mkdir -p "${pkgdir}"/boot
  51. cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  52. }