PKGBUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # U-Boot: Boundary Devices Nitrogen6X/Sabre Lite
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. pkgname=uboot4extlinux-nitrogen6q
  5. pkgver=2014.07
  6. pkgrel=3.1
  7. arch=('armv7h')
  8. pkgdesc="U-Boot with Extlinux support for Nitrogen6X/Sabre Lite"
  9. url="https://github.com/boundarydevices/u-boot-imx6/tree/production"
  10. license=('GPL')
  11. makedepends=('bc')
  12. conflicts=('uboot-nitrogen6q' 'uboot4grub-nitrogen6q')
  13. backup=(boot/extlinux/extlinux.conf)
  14. install=${pkgname}.install
  15. _commit=bb9dde563768731423fd6c560e95e1793a90710a
  16. source=("https://github.com/boundarydevices/u-boot-imx6/archive/${_commit}.tar.gz"
  17. '0001-parabola-arm-modifications.patch'
  18. '0002-kernel-add-support-for-gcc-7.patch'
  19. '0003-ARM-asm-io.h-use-static-inline.patch'
  20. '0004-common-main.c-make-show_boot_progress-__weak.patch'
  21. '0005-common-board-use-__weak.patch'
  22. '0006-common-board_f-cosmetic-use-__weak-for-leds.patch'
  23. 'extlinux.conf')
  24. sha256sums=('d06ad5e6b9adb84e7bfa99f8d5335ef06d48b351809e6f65e83a92c0e8a4d3ce'
  25. '1592a845ef7a229e5d370586edf344502f3ded5c24c853c790b600e8ef0128c7'
  26. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  27. '2fb98981885fbffba32fadb7b4a321e5540278c2a97f39b2700ad14c2ddb4d2a'
  28. '83f56e80b09d010a7d0f9cc18d4df43c7f100ee3a815421f2ccbf2c337ae5431'
  29. 'bb9f0bde66266998db0eae3204346364568bab963fe7be1086d633339652b70c'
  30. 'dd2d912d4e14dc7ea83fbe6148feecc65f104ae367292278f668cdfc11f947a5'
  31. '38db7f68084a5727a7c7cb101bb96c82f384b8ed4b14c3e1c2f9fcfc07ac164c')
  32. prepare() {
  33. cd u-boot-imx6-${_commit}
  34. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  35. patch -Np1 -i ../0002-kernel-add-support-for-gcc-7.patch
  36. patch -Np1 -i ../0003-ARM-asm-io.h-use-static-inline.patch
  37. patch -Np1 -i ../0004-common-main.c-make-show_boot_progress-__weak.patch
  38. patch -Np1 -i ../0005-common-board-use-__weak.patch
  39. patch -Np1 -i ../0006-common-board_f-cosmetic-use-__weak-for-leds.patch
  40. }
  41. build() {
  42. cd u-boot-imx6-${_commit}
  43. unset CFLAGS
  44. unset CXXFLAGS
  45. make distclean
  46. make nitrogen6q_config
  47. make
  48. }
  49. package() {
  50. cd u-boot-imx6-${_commit}
  51. mkdir -p "${pkgdir}"/boot/extlinux
  52. cp u-boot.imx "${pkgdir}"/boot
  53. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  54. }