PKGBUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # U-Boot: TrimSlice
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. buildarch=4
  4. pkgname=uboot-trimslice
  5. pkgver=2014.10
  6. pkgrel=1.parabola1
  7. pkgdesc="U-Boot for TrimSlice"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. makedepends=('cbootimage' 'dtc' 'uboot-tools')
  11. depends=('linux-libre')
  12. replaces=('uboot-trimslice-linux-libre')
  13. conflicts=('uboot4extlinux-trimslice' 'uboot4grub-trimslice')
  14. license=('GPL')
  15. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  16. "git+https://github.com/NVIDIA/cbootimage-configs.git"
  17. "boot.txt"
  18. "0001-kernel-add-support-for-gcc-5.patch")
  19. md5sums=('3ddcaee2f05b7c464778112ec83664b5'
  20. 'SKIP'
  21. '9374fbadb4b4c1298ea050ad4ea79f46'
  22. '721a46867e189d8dedc6b6f86a536a34')
  23. prepare() {
  24. cd u-boot-${pkgver}
  25. patch -Np1 -i ../0001-kernel-add-support-for-gcc-5.patch
  26. }
  27. build() {
  28. cd u-boot-${pkgver}
  29. unset LDFLAGS
  30. make distclean
  31. make trimslice_config
  32. make
  33. }
  34. package() {
  35. mkdir -p "${pkgdir}"/boot
  36. mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "TrimSlice" -d boot.txt "${pkgdir}"/boot/boot.scr
  37. cp boot.txt "${pkgdir}"/boot
  38. cd cbootimage-configs/tegra20/compulab/trimslice
  39. ln -s ${srcdir}/u-boot-${pkgver}/u-boot-dtb-tegra.bin u-boot.bin
  40. ./build.sh
  41. cp trimslice-mmc.img trimslice-spi.img "${pkgdir}"/boot
  42. }