PKGBUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # U-Boot: Inverse Path USB Armory
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgname=uboot-usbarmory
  5. pkgver=2016.01
  6. pkgrel=1.parabola1
  7. pkgdesc="U-Boot for USB Armory"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. makedepends=('bc')
  12. depends=('linux-libre')
  13. replaces=('uboot-usbarmory-linux-libre')
  14. conflicts=('uboot4extlinux-usbarmory' 'uboot4grub-usbarmory')
  15. install=${pkgname}.install
  16. backup=(boot/boot.txt boot/boot.scr)
  17. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  18. '0001-parabola-arm-modifications.patch'
  19. 'boot.txt'
  20. 'mkscr')
  21. md5sums=('7d4f65fd43d4d706f5c5650e020d899d'
  22. '15bacb3ff7c9bfb350e7e43f081bd9b3'
  23. 'eb83db44c372a6ff3349e026083f15f9'
  24. '021623a04afd29ac3f368977140cfbfd')
  25. prepare() {
  26. cd u-boot-${pkgver}
  27. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  28. }
  29. build() {
  30. cd u-boot-${pkgver}
  31. unset CFLAGS CXXFLAGS LDFLAGS
  32. make distclean
  33. make usbarmory_config
  34. make
  35. }
  36. package() {
  37. cd u-boot-${pkgver}
  38. install -d "${pkgdir}"/boot
  39. install -Dm644 u-boot.imx "${pkgdir}"/boot
  40. install -Dm644 ../boot.txt "${pkgdir}"/boot/boot.txt
  41. tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
  42. install -Dm755 ../mkscr "${pkgdir}"/boot/mkscr
  43. }