PKGBUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # U-Boot: BeagleBoard and BeagleBoard-xM
  2. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  3. # Contributor: André Silva <emulatorman@hyperbola.info>
  4. pkgname=uboot4extlinux-omap3_beagle
  5. pkgver=2016.01
  6. pkgrel=4.1
  7. pkgdesc="U-Boot with Extlinux support for BeagleBoard and BeagleBoard-xM"
  8. arch=('armv7h')
  9. url="http://git.denx.de/u-boot.git/"
  10. license=('GPL')
  11. conflicts=('uboot-omap3_beagle' 'uboot4grub-omap3_beagle')
  12. makedepends=('bc')
  13. backup=(boot/extlinux/extlinux.conf)
  14. install=${pkgname}.install
  15. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
  16. '0001-parabola-arm-modifications.patch'
  17. '0002-kernel-add-support-for-gcc-7.patch'
  18. 'extlinux.conf'
  19. 'uEnv.txt')
  20. sha256sums=('e5792fba9399d9804aa2ef667f14ff771e2cdece72367d340250265bf095a5d5'
  21. 'cf6519bab4270bf093eb6ff0d9f3b4d314d00af6c4ecad07c492977ae5c7f510'
  22. '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968'
  23. 'bb489334db2d44562caa18ed6297068cf7df3afdf1bb8b1b1f27bce0d2b8e987'
  24. 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
  25. prepare() {
  26. cd u-boot-${pkgver}
  27. patch -Np1 -i ../0001-parabola-arm-modifications.patch
  28. patch -Np1 -i ../0002-kernel-add-support-for-gcc-7.patch
  29. }
  30. build() {
  31. cd u-boot-${pkgver}
  32. unset LDFLAGS CFLAGS CXXFLAGS
  33. make distclean
  34. make omap3_beagle_config
  35. make
  36. }
  37. package() {
  38. cd u-boot-${pkgver}
  39. mkdir -p "${pkgdir}"/boot/extlinux
  40. cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
  41. cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
  42. }