PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # U-Boot: UDOO
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgbase=uboot-udoo
  5. pkgname=('uboot-udoo_dl' 'uboot-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=('linux-libre')
  13. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  14. '0001-parabola-arm-modifications.patch'
  15. '0002-kernel-add-support-for-gcc-5.patch')
  16. md5sums=('7f08dc9e98a71652bd6968888ed6ec95'
  17. 'f5e3488e5f2e0646f7e2965c8d5c52d5'
  18. '721a46867e189d8dedc6b6f86a536a34')
  19. prepare() {
  20. cd u-boot-${pkgver}
  21. patch -Np1 -i ../0001-parabola-arm-modifications.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_uboot-udoo_dl() {
  36. pkgdesc="U-Boot for UDOO Dual"
  37. replaces=('uboot-udoo-dual-linux-libre' 'uboot-udoo-dual-linux-libre-grsec'
  38. 'uboot-udoo-dual')
  39. conflicts=('uboot-udoo' 'uboot4extlinux-udoo' 'uboot4grub-udoo')
  40. provides=('uboot-udoo')
  41. install=${pkgbase}.install
  42. mkdir -p "${pkgdir}"/boot
  43. cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx
  44. }
  45. package_uboot-udoo_quad() {
  46. pkgdesc="U-Boot for UDOO Quad"
  47. replaces=('uboot-udoo-quad-linux-libre' 'uboot-udoo-quad-linux-libre-grsec'
  48. 'uboot-udoo-quad')
  49. conflicts=('uboot-udoo' 'uboot4extlinux-udoo' 'uboot4grub-udoo')
  50. provides=('uboot-udoo')
  51. install=${pkgbase}.install
  52. mkdir -p "${pkgdir}"/boot
  53. cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
  54. }