summaryrefslogtreecommitdiff
path: root/libre/uboot-udoo-linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 04:41:55 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 04:41:55 -0300
commit22e36af03ddbd4e8949bb9f7f7b20a6054bbfeff (patch)
tree027854da34ce905ad3549e03cbc0be969d1c5f64 /libre/uboot-udoo-linux-libre/PKGBUILD
parente652c71cc553a3d89beb8f335c3e92d55b63953f (diff)
uboot-udoo-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-udoo-linux-libre/PKGBUILD')
-rw-r--r--libre/uboot-udoo-linux-libre/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/libre/uboot-udoo-linux-libre/PKGBUILD b/libre/uboot-udoo-linux-libre/PKGBUILD
new file mode 100644
index 000000000..c2ea10a96
--- /dev/null
+++ b/libre/uboot-udoo-linux-libre/PKGBUILD
@@ -0,0 +1,61 @@
+# U-Boot: UDOO
+# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+_pkgbase=linux-libre
+pkgbase=uboot-udoo-${_pkgbase}
+pkgname=("uboot-udoo-dual-${_pkgbase}" "uboot-udoo-quad-${_pkgbase}")
+pkgver=2015.01
+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'
+ '0002-kernel-add-support-for-gcc-5.patch')
+md5sums=('7f08dc9e98a71652bd6968888ed6ec95'
+ '818143fb9e57d4aef9684365b0623901'
+ '721a46867e189d8dedc6b6f86a536a34')
+
+prepare() {
+ cd u-boot-${pkgver}
+
+ patch -Np1 -i ../0001-parabola-arm-modifications.patch
+ patch -Np1 -i ../0002-kernel-add-support-for-gcc-5.patch
+}
+
+build() {
+ cd u-boot-${pkgver}
+
+ unset CFLAGS CXXFLAGS LDFLAGS
+
+ mkdir bins
+ for i in dl quad; do
+ make distclean
+ make udoo_${i}_config
+ make
+ mv u-boot.imx bins/u-boot-${i}.imx
+ done
+}
+
+package_uboot-udoo-dual-linux-libre() {
+ pkgdesc="U-Boot for UDOO Dual (built for the linux-libre kernel package)"
+ replaces=('uboot-udoo-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-udoo-quad-linux-libre() {
+ pkgdesc="U-Boot for UDOO Quad (built for the linux-libre kernel package)"
+ replaces=('uboot-udoo-quad')
+ install=${pkgbase}.install
+
+ mkdir -p "${pkgdir}/boot/${pkgname}"
+ cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
+}