From 7fb550684b5eca45e75575e265b17ec9db1384b8 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 24 Feb 2016 00:56:40 -0300 Subject: uboot-udoo: add new package to [libre-testing] --- libre-testing/uboot-udoo/PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 libre-testing/uboot-udoo/PKGBUILD (limited to 'libre-testing/uboot-udoo/PKGBUILD') diff --git a/libre-testing/uboot-udoo/PKGBUILD b/libre-testing/uboot-udoo/PKGBUILD new file mode 100644 index 000000000..ab13ee499 --- /dev/null +++ b/libre-testing/uboot-udoo/PKGBUILD @@ -0,0 +1,68 @@ +# U-Boot: UDOO +# Maintainer: André Silva + +buildarch=4 + +pkgbase=uboot-udoo +pkgname=('uboot-udoo_dl' 'uboot-udoo_quad') +pkgver=2015.01 +pkgrel=1 +arch=('armv7h') +url="http://git.denx.de/u-boot.git/" +license=('GPL') +makedepends=('bc') +backup=(boot/extlinux/extlinux.conf) +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' + 'extlinux.conf') +md5sums=('7f08dc9e98a71652bd6968888ed6ec95' + 'dfceac5db9aa48ae2d5accf1d151c311' + '721a46867e189d8dedc6b6f86a536a34' + 'e05d2d41a1bdbbd5d6fec02534784dcd') + +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_dl() { + pkgdesc="U-Boot for UDOO Dual" + replaces=('uboot-udoo-dual-linux-libre' 'uboot-udoo-dual-linux-libre-grsec' + 'uboot-udoo-dual') + conflicts=('uboot-udoo-dual-linux-libre' 'uboot-udoo-dual-linux-libre-grsec' + 'uboot-udoo-dual' 'uboot-udoo_quad' 'uboot4grub-udoo_dl' 'uboot4grub-udoo_quad') + install=${pkgbase}.install + + mkdir -p "${pkgdir}"/boot/extlinux + cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}"/boot/u-boot.imx + cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux +} + +package_uboot-udoo_quad() { + pkgdesc="U-Boot for UDOO Quad" + replaces=('uboot-udoo-quad-linux-libre' 'uboot-udoo-quad-linux-libre-grsec') + conflicts=('uboot-udoo-quad-linux-libre' 'uboot-udoo-quad-linux-libre-grsec' + 'uboot-udoo_dual' 'uboot4grub-udoo_quad' 'uboot4grub-udoo_dl') + install=${pkgbase}.install + + mkdir -p "${pkgdir}"/boot/extlinux + cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx + cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux +} -- cgit v1.2.3