PKGBUILD 1000 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Barebox: am335x
  2. # Contributor: Denis Carikli <GNUtoo@cyberdimension.org>
  3. _pkgname=barebox
  4. pkgname=barebox-am335x
  5. pkgver=2019.02.0
  6. pkgrel=1
  7. pkgdesc="Barebox for devices with an am335x system on a chip"
  8. arch=('armv7h')
  9. makedepends=('lzop')
  10. url="http://barebox.org/"
  11. license=('GPL2')
  12. install=${_pkgname}.install
  13. source=("http://barebox.org/download/${_pkgname}-${pkgver}.tar.bz2")
  14. sha512sums=('648827efeec7b2591eaf43daf98368be1902e3f8157c8acd88b9f103078e9989bb158d81eda013e360d6dfdfbb3c7aae0e334fce957663b72ca46f419c33e981')
  15. build() {
  16. cd ${_pkgname}-${pkgver}
  17. unset CFLAGS CXXFLAGS LDFLAGS
  18. if [ "$CARCH" = "armv7h" ]; then
  19. export ARCH=arm
  20. make am335x_mlo_defconfig
  21. make
  22. make omap_defconfig
  23. make
  24. # TODO: Add support for more ARM SOCs and
  25. # CPU architectures (Barebox also supports
  26. # x86 and PowerPC)
  27. fi
  28. }
  29. package() {
  30. cd ${_pkgname}-${pkgver}
  31. mkdir -p "${pkgdir}/boot/barebox/images/"
  32. install -t "${pkgdir}/boot/barebox/images/" images/barebox-*.img
  33. }