summaryrefslogtreecommitdiff
path: root/libre/uboot-sunxi-linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:45:36 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:53:44 -0300
commitd737d4e1734b9f1aa3bb590133b3e9f99b89b00c (patch)
tree53e884be9ec57216cf685447fc6072aaf27cc48b /libre/uboot-sunxi-linux-libre/PKGBUILD
parent8f4210ea6e51b01c5ca354c1092e63e8639fdd98 (diff)
uboot-sunxi-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-sunxi-linux-libre/PKGBUILD')
-rw-r--r--libre/uboot-sunxi-linux-libre/PKGBUILD282
1 files changed, 282 insertions, 0 deletions
diff --git a/libre/uboot-sunxi-linux-libre/PKGBUILD b/libre/uboot-sunxi-linux-libre/PKGBUILD
new file mode 100644
index 000000000..bbdc1b10e
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/PKGBUILD
@@ -0,0 +1,282 @@
+# U-Boot: sunXi
+# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+_pkgbase=linux-libre
+pkgbase=uboot-sunxi-${_pkgbase}
+pkgname=("uboot-a10-olinuxino-lime-${_pkgbase}"
+ "uboot-a10s-olinuxino-micro-${_pkgbase}"
+ "uboot-a13-olinuxino-${_pkgbase}"
+ "uboot-a13-olinuxino-micro-${_pkgbase}"
+ "uboot-a20-olinuxino-lime-${_pkgbase}"
+ "uboot-a20-olinuxino-lime2-${_pkgbase}"
+ "uboot-a20-olinuxino-micro-${_pkgbase}"
+ "uboot-cubieboard-${_pkgbase}"
+ "uboot-cubieboard2-${_pkgbase}"
+ "uboot-cubietruck-${_pkgbase}"
+ "uboot-pcduino-${_pkgbase}"
+ "uboot-pcduino3-${_pkgbase}"
+ "uboot-pcduino3-nano-${_pkgbase}")
+pkgver=2015.07
+pkgrel=1
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+makedepends=('bc' 'dtc')
+depends=('linux-libre')
+source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
+ '0001-parabola-arm-modifications.patch'
+ 'boot.txt'
+ 'mkscr')
+md5sums=('3dac9a0b46fed77fc768ad3bd2d68c05'
+ 'b83d7781a1365b2d9d87f9dfa9d2c166'
+ 'cbc1530c593b029ba8cb8de191d1f095'
+ '858048d9bbc6502968defb52791b6c52')
+
+boards=('A10-OLinuXino-Lime'
+ 'A10s-OLinuXino-M'
+ 'A13-OLinuXino'
+ 'A13-OLinuXinoM'
+ 'A20-OLinuXino-Lime'
+ 'A20-OLinuXino-Lime2'
+ 'A20-OLinuXino_MICRO'
+ 'Cubieboard'
+ 'Cubieboard2'
+ 'Cubietruck'
+ 'Linksprite_pcDuino'
+ 'Linksprite_pcDuino3'
+ 'Linksprite_pcDuino3_Nano')
+
+prepare() {
+ cd u-boot-${pkgver}
+
+ patch -Np1 -i ../0001-parabola-arm-modifications.patch
+}
+
+build() {
+ cd u-boot-${pkgver}
+
+ unset CFLAGS
+ unset CXXFLAGS
+ unset LDFLAGS
+
+ for i in ${boards[@]}; do
+ mkdir ../bin_${i}
+ make distclean
+ make ${i}_config
+ make EXTRAVERSION=-${pkgrel}
+ mv u-boot-sunxi-with-spl.bin ../bin_${i}
+ done
+
+ tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt ../boot.scr
+}
+
+package_uboot-a10-olinuxino-lime-linux-libre() {
+ pkgdesc="U-Boot for A10 OLinuXino Lime (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a10-olinuxino-lime')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A10-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a10s-olinuxino-micro-linux-libre() {
+ pkgdesc="U-Boot for A10s OLinuXino Micro (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a10s-olinuxino-micro')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a13-olinuxino-linux-libre() {
+ pkgdesc="U-Boot for A13 OLinuXino (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a13-olinuxino')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A13-OLinuXino/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a13-olinuxino-micro-linux-libre() {
+ pkgdesc="U-Boot for A13 OLinuXino Micro (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a13-olinuxino-micro')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a20-olinuxino-lime-linux-libre() {
+ pkgdesc="U-Boot for A20 OLinuXino Lime (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a20-olinuxino-lime')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A20-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a20-olinuxino-lime2-linux-libre() {
+ pkgdesc="U-Boot for A20 OLinuXino Lime2 (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a20-olinuxino-lime2')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-a20-olinuxino-micro-linux-libre() {
+ pkgdesc="U-Boot for A20 OLinuXino Micro (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-a20-olinuxino-micro')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-cubieboard-linux-libre() {
+ pkgdesc="U-Boot for Cubieboard (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-cubieboard')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Cubieboard/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"/u-boot-sunxi-with-spl.bin
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-cubieboard2-linux-libre() {
+ pkgdesc="U-Boot for Cubieboard 2 (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-cubieboard2')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"/u-boot-sunxi-with-spl.bin
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-cubietruck-linux-libre() {
+ pkgdesc="U-Boot for Cubietruck (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-cubietruck')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Cubietruck/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"/u-boot-sunxi-with-spl.bin
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-pcduino-linux-libre() {
+ pkgdesc="U-Boot for pcDuino (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-pcduino')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Linksprite_pcDuino/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-pcduino3-linux-libre() {
+ pkgdesc="U-Boot for pcDuino3 (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-pcduino3')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}
+
+package_uboot-pcduino3-nano-linux-libre() {
+ pkgdesc="U-Boot for pcDuino3 Nano (built for the linux-libre kernel package)"
+ install=${pkgbase}.install
+ backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
+ provides=('uboot-sunxi')
+ conflicts=('uboot-sunxi')
+ replaces=('uboot-pcduino3-nano')
+
+ install -d "${pkgdir}/boot/${pkgname}"
+ install -Dm644 bin_Linksprite_pcDuino3_Nano/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/${pkgname}"
+
+ install -Dm644 boot.txt "${pkgdir}/boot/${pkgname}"/boot.txt
+ install -Dm644 boot.scr "${pkgdir}/boot/${pkgname}"/boot.scr
+ install -Dm755 mkscr "${pkgdir}/boot/${pkgname}"/mkscr
+}