summaryrefslogtreecommitdiff
path: root/libre/uboot-usbarmory-linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:47:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:53:44 -0300
commit91aff038958f833a3aacbf2e98e6abc684611e3b (patch)
tree2f18f3422bcbd23ea6b1206f7d87426d93b799b3 /libre/uboot-usbarmory-linux-libre/PKGBUILD
parentf47b7b94cb804c702adc5949f80838bd28153d3a (diff)
uboot-usbarmory-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-usbarmory-linux-libre/PKGBUILD')
-rw-r--r--libre/uboot-usbarmory-linux-libre/PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/libre/uboot-usbarmory-linux-libre/PKGBUILD b/libre/uboot-usbarmory-linux-libre/PKGBUILD
new file mode 100644
index 000000000..bf808a11b
--- /dev/null
+++ b/libre/uboot-usbarmory-linux-libre/PKGBUILD
@@ -0,0 +1,55 @@
+# U-Boot: Inverse Path USB armory
+# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
+# Maintainer: Jason Plum <jplum@archlinuxarm.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+_pkgname=linux-libre
+pkgname=uboot-usbarmory-${_pkgname}
+pkgver=2015.04
+pkgrel=1
+pkgdesc="U-Boot for USB Armory (built for the linux-libre kernel package)"
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+makedepends=('bc')
+depends=('linux-libre')
+replaces=('uboot-usbarmory')
+install=${pkgname}.install
+backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
+ '0001-parabola-arm-modifications.patch'
+ 'boot.txt'
+ 'mkscr')
+md5sums=('570bdc2c47270c2a98ca60ff6c5c74cd'
+ '2ca10f4a7eeb0073035263fbbf3dd33a'
+ 'eb83db44c372a6ff3349e026083f15f9'
+ '021623a04afd29ac3f368977140cfbfd')
+
+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 usbarmory_config
+ make
+}
+
+package() {
+ cd u-boot-${pkgver}
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 u-boot.imx "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 ../boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 ../mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}