summaryrefslogtreecommitdiff
path: root/libre/uboot-am335x_bone/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-02-23 13:55:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-02-23 13:55:12 -0300
commit97db170373c3fb1dcbe29268de31abf2da9ea7e7 (patch)
tree1417768b2fb9afd839fee51e6320086b6bb5b31e /libre/uboot-am335x_bone/PKGBUILD
parent84419b785f13f1ff44943fa89b86661077417ae3 (diff)
uboot-am335x_bone: add package to [libre]
Diffstat (limited to 'libre/uboot-am335x_bone/PKGBUILD')
-rw-r--r--libre/uboot-am335x_bone/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/libre/uboot-am335x_bone/PKGBUILD b/libre/uboot-am335x_bone/PKGBUILD
new file mode 100644
index 000000000..a62861a9f
--- /dev/null
+++ b/libre/uboot-am335x_bone/PKGBUILD
@@ -0,0 +1,53 @@
+# U-Boot: BeagleBone and BeagleBone Black
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Jookia <166291@gmail.com>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+buildarch=4
+
+pkgname=uboot-am335x_bone
+pkgver=2015.04
+pkgrel=2
+pkgdesc="U-Boot for BeagleBone and BeagleBone Black"
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+replaces=('uboot-beaglebone-linux-libre' 'uboot-beaglebone-linux-libre-lts'
+ 'uboot-beaglebone-linux-libre-grsec' 'uboot-beaglebone-linux-libre-pck'
+ 'uboot-beaglebone')
+conflicts=('uboot-beaglebone-linux-libre' 'uboot-beaglebone-linux-libre-lts'
+ 'uboot-beaglebone-linux-libre-grsec' 'uboot-beaglebone-linux-libre-pck'
+ 'uboot-beaglebone' 'uboot4grub-am335x_bone')
+makedepends=('bc')
+license=('GPL')
+backup=(boot/extlinux/extlinux.conf)
+install=${pkgname}.install
+source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
+ '0001-parabola-arm-modifications.patch'
+ 'extlinux.conf'
+ 'uEnv.txt')
+md5sums=('570bdc2c47270c2a98ca60ff6c5c74cd'
+ '7aaf785aa34682a174424f50988728e5'
+ 'cde2078db6208585d36d2f6a3c830860'
+ 'ccb79775b81654e16fca18825c7f2506')
+
+prepare() {
+ cd u-boot-${pkgver}
+ patch -Np1 -i ../0001-parabola-arm-modifications.patch
+}
+
+build() {
+ cd u-boot-${pkgver}
+
+ unset CFLAGS CXXFLAGS LDFLAGS
+
+ make distclean
+ make am335x_evm_config
+ make
+}
+
+package() {
+ cd u-boot-${pkgver}
+ mkdir -p "${pkgdir}"/boot/extlinux
+ cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
+ cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
+}