mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
245 lines
7.2 KiB
Bash
245 lines
7.2 KiB
Bash
# U-Boot: sunXi
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=4
|
|
|
|
pkgbase=uboot-sunxi
|
|
pkgname=('uboot-a10-olinuxino-lime'
|
|
'uboot-a10s-olinuxino-micro'
|
|
'uboot-a13-olinuxino'
|
|
'uboot-a13-olinuxino-micro'
|
|
'uboot-a20-olinuxino-lime'
|
|
'uboot-a20-olinuxino-lime2'
|
|
'uboot-a20-olinuxino-micro'
|
|
'uboot-cubieboard'
|
|
'uboot-cubieboard2'
|
|
'uboot-cubietruck'
|
|
'uboot-pcduino'
|
|
'uboot-pcduino3'
|
|
'uboot-pcduino3-nano')
|
|
pkgver=2024.07
|
|
pkgrel=1
|
|
arch=('armv7h')
|
|
url="http://git.denx.de/u-boot.git/"
|
|
license=('GPL')
|
|
makedepends=('git' 'bc' 'dtc' 'python' 'swig')
|
|
backup=(boot/boot.txt boot/boot.scr)
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
|
'boot.txt'
|
|
'mkscr')
|
|
sha256sums=('f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f'
|
|
'24ca87bc2941bc5c6230e9004c0305fa63c5c007160bd438d296691bd979f27a'
|
|
'a4fc8b6b92bc364d6542670d294aa618a8501fb8729f415cc0a3eed776ef0c8e')
|
|
|
|
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')
|
|
|
|
build() {
|
|
cd u-boot-${pkgver}
|
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
for i in ${boards[@]}; do
|
|
mkdir ../bin_${i}
|
|
make distclean
|
|
make ${i}_config
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .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() {
|
|
pkgdesc="U-Boot for A10 OLinuXino Lime"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A10-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a10s-olinuxino-micro() {
|
|
pkgdesc="U-Boot for A10s OLinuXino Micro"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a13-olinuxino() {
|
|
pkgdesc="U-Boot for A13 OLinuXino"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A13-OLinuXino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a13-olinuxino-micro() {
|
|
pkgdesc="U-Boot for A13 OLinuXino Micro"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a20-olinuxino-lime() {
|
|
pkgdesc="U-Boot for A20 OLinuXino Lime"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A20-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a20-olinuxino-lime2() {
|
|
pkgdesc="U-Boot for A20 OLinuXino Lime2"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-a20-olinuxino-micro() {
|
|
pkgdesc="U-Boot for A20 OLinuXino Micro"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-cubieboard() {
|
|
pkgdesc="U-Boot for Cubieboard"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Cubieboard/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-cubieboard2() {
|
|
pkgdesc="U-Boot for Cubieboard 2"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-cubietruck() {
|
|
pkgdesc="U-Boot for Cubietruck"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Cubietruck/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-pcduino() {
|
|
pkgdesc="U-Boot for pcDuino"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Linksprite_pcDuino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-pcduino3() {
|
|
pkgdesc="U-Boot for pcDuino3"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|
|
|
|
package_uboot-pcduino3-nano() {
|
|
pkgdesc="U-Boot for pcDuino3 Nano"
|
|
install=${pkgbase}.install
|
|
provides=('uboot-sunxi')
|
|
conflicts=('uboot-sunxi')
|
|
|
|
install -d "${pkgdir}"/boot
|
|
install -Dm644 bin_Linksprite_pcDuino3_Nano/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
|
|
|
|
install -Dm644 boot.txt "${pkgdir}"/boot/boot.txt
|
|
install -Dm644 boot.scr "${pkgdir}"/boot/boot.scr
|
|
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
|
|
}
|