summaryrefslogtreecommitdiff
path: root/libre/uboot-wandboard-linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:48:13 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:53:44 -0300
commitafa0e6e98bf8dbd69a553df340850e74e1d1481a (patch)
tree3b3ce3cf70e4c589d7390733ccade4d3c66db737 /libre/uboot-wandboard-linux-libre/PKGBUILD
parent91aff038958f833a3aacbf2e98e6abc684611e3b (diff)
downloadabslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.tar.gz
abslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.tar.bz2
abslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.zip
uboot-wandboard-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-wandboard-linux-libre/PKGBUILD')
-rw-r--r--libre/uboot-wandboard-linux-libre/PKGBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/libre/uboot-wandboard-linux-libre/PKGBUILD b/libre/uboot-wandboard-linux-libre/PKGBUILD
new file mode 100644
index 000000000..eb580836e
--- /dev/null
+++ b/libre/uboot-wandboard-linux-libre/PKGBUILD
@@ -0,0 +1,69 @@
+# U-Boot: Wandboard
+# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+_pkgbase=linux-libre
+pkgbase=uboot-wandboard-${_pkgbase}
+pkgname=("uboot-wandboard-solo-${_pkgbase}" "uboot-wandboard-dual-${_pkgbase}" "uboot-wandboard-quad-${_pkgbase}")
+pkgver=2015.04
+pkgrel=1
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+makedepends=('bc')
+depends=('linux-libre')
+source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
+ '0001-parabola-arm-modifications.patch')
+md5sums=('570bdc2c47270c2a98ca60ff6c5c74cd'
+ '7b1bcd38116d27e450705948cb8a87a7')
+
+prepare() {
+ cd u-boot-${pkgver}
+ patch -Np1 -i ../0001-parabola-arm-modifications.patch
+}
+
+build() {
+ cd u-boot-${pkgver}
+
+ unset LDFLAGS
+
+ mkdir bins
+ for i in solo dl quad; do
+ make distclean
+ make wandboard_${i}_config
+ make
+ mv u-boot.imx bins/u-boot-${i}.imx
+ done
+}
+
+package_uboot-wandboard-solo-linux-libre() {
+ pkgdesc="U-Boot for Wandboard Solo (built for the linux-libre kernel package)"
+ conflicts=('uboot-wandboard-dual' 'uboot-wandboard-quad')
+ replaces=('uboot-wandboard-solo')
+ install=${pkgbase}.install
+
+ mkdir -p "${pkgdir}/boot/${pkgname}"
+ cp u-boot-${pkgver}/bins/u-boot-solo.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
+}
+
+package_uboot-wandboard-dual-linux-libre() {
+ pkgdesc="U-Boot for Wandboard Dual (built for the linux-libre kernel package)"
+ conflicts=('uboot-wandboard-solo' 'uboot-wandboard-quad')
+ replaces=('uboot-wandboard-dual')
+ install=${pkgbase}.install
+
+ mkdir -p "${pkgdir}/boot/${pkgname}"
+ cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
+}
+
+package_uboot-wandboard-quad-linux-libre() {
+ pkgdesc="U-Boot for Wandboard Quad (built for the linux-libre kernel package)"
+ conflicts=('uboot-wandboard-solo' 'uboot-wandboard-dual')
+ replaces=('uboot-wandboard-quad')
+ install=${pkgbase}.install
+
+ mkdir -p "${pkgdir}/boot/${pkgname}"
+ cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
+}