summaryrefslogtreecommitdiff
path: root/libre/uboot-usbarmory/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:55:30 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:55:30 -0300
commitffec767572058f3ad0fb869e59b4df2f64b80f04 (patch)
tree575ba5fb789d4ef4cd982cbe46cb377260637469 /libre/uboot-usbarmory/PKGBUILD
parent3cc20cbac18f7e65b50643cd3a25be2211a76e9a (diff)
downloadabslibre-ffec767572058f3ad0fb869e59b4df2f64b80f04.tar.gz
abslibre-ffec767572058f3ad0fb869e59b4df2f64b80f04.tar.bz2
abslibre-ffec767572058f3ad0fb869e59b4df2f64b80f04.zip
uboot-usbarmory: add new package to [libre]
Diffstat (limited to 'libre/uboot-usbarmory/PKGBUILD')
-rw-r--r--libre/uboot-usbarmory/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/libre/uboot-usbarmory/PKGBUILD b/libre/uboot-usbarmory/PKGBUILD
new file mode 100644
index 000000000..86a8db13e
--- /dev/null
+++ b/libre/uboot-usbarmory/PKGBUILD
@@ -0,0 +1,53 @@
+# U-Boot: Inverse Path USB Armory
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+pkgname=uboot-usbarmory
+pkgver=2016.01
+pkgrel=1.parabola1
+pkgdesc="U-Boot for USB Armory"
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+makedepends=('bc')
+depends=('linux-libre')
+replaces=('uboot-usbarmory-linux-libre')
+conflicts=('uboot4extlinux-usbarmory' 'uboot4grub-usbarmory')
+install=${pkgname}.install
+backup=(boot/boot.txt boot/boot.scr)
+source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
+ '0001-parabola-arm-modifications.patch'
+ 'boot.txt'
+ 'mkscr')
+md5sums=('7d4f65fd43d4d706f5c5650e020d899d'
+ '15bacb3ff7c9bfb350e7e43f081bd9b3'
+ '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
+ install -Dm644 u-boot.imx "${pkgdir}"/boot
+
+ install -Dm644 ../boot.txt "${pkgdir}"/boot/boot.txt
+ tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
+ install -Dm755 ../mkscr "${pkgdir}"/boot/mkscr
+}