# U-Boot: sunXi # Maintainer: Isaac David # Contributor: André Silva # Contributor: Timothy Redaelli # Contributor: Denis 'GNUtoo' Carikli pkgbase=uboot4extlinux-sunxi pkgname=('uboot4extlinux-a10-olinuxino-lime') pkgname=('uboot4extlinux-a10-olinuxino-lime' 'uboot4extlinux-a10s-olinuxino-m' 'uboot4extlinux-a13-olinuxino' 'uboot4extlinux-a13-olinuxinom' 'uboot4extlinux-a20-olinuxino-lime' 'uboot4extlinux-a20-olinuxino-lime2' 'uboot4extlinux-a20-olinuxino-lime2-emmc' 'uboot4extlinux-a20-olinuxino_micro' 'uboot4extlinux-bananapi' 'uboot4extlinux-bananapro' 'uboot4extlinux-chip' 'uboot4extlinux-cubieboard' 'uboot4extlinux-cubieboard2' 'uboot4extlinux-cubietruck' 'uboot4extlinux-linksprite_pcduino' 'uboot4extlinux-linksprite_pcduino3' 'uboot4extlinux-linksprite_pcduino3_nano' 'uboot4extlinux-orangepi_2' 'uboot4extlinux-orangepi_one' 'uboot4extlinux-orangepi_pc' 'uboot4extlinux-orangepi_plus') pkgver=2020.04 pkgrel=1 arch=('armv7h' 'i686' 'x86_64') url="http://git.denx.de/u-boot.git/" license=('GPL') makedepends=('bc' 'dtc' 'python' 'python2' 'swig') makedepends_i686+=('arm-none-eabi-gcc') makedepends_x86_64+=('arm-none-eabi-gcc') backup=(boot/extlinux/extlinux.conf) source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2" 'extlinux.conf' 'uboot4extlinux-sunxi.install' 'install-uboot4extlinux.sh.in') sha256sums=('fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372' 'SKIP' 'SKIP' 'SKIP') boards=('A10-OLinuXino-Lime' 'A10s-OLinuXino-M' 'A13-OLinuXino' 'A13-OLinuXinoM' 'A20-OLinuXino-Lime' 'A20-OLinuXino-Lime2' 'A20-OLinuXino-Lime2-eMMC' 'A20-OLinuXino_MICRO' 'Bananapi' 'Bananapro' 'CHIP' 'Cubieboard' 'Cubieboard2' 'Cubietruck' 'Linksprite_pcDuino' 'Linksprite_pcDuino3' 'Linksprite_pcDuino3_Nano' 'orangepi_2' 'orangepi_one' 'orangepi_pc' 'orangepi_plus') # Offset at which to install u-boot u_boot_with_spl_offset=8192 case "$CARCH" in armv7h) ARCH=arm;; i686) ARCH=arm;CROSS_COMPILE=arm-none-eabi-;; esac build() { echo cd u-boot-${pkgver} unset CFLAGS CXXFLAGS LDFLAGS # Used to store the result for each "board" rm -rf build install -d build for i in ${boards[@]}; do make "ARCH=${ARCH}" distclean make "ARCH=${ARCH}" ${i}_defconfig echo 'CONFIG_IDENT_STRING=" Parabola GNU/Linux-libre"' >> .config if [ "$CARCH" = "i686" ]; then make "ARCH=${ARCH}" "CROSS_COMPILE=${CROSS_COMPILE}" EXTRAVERSION=-${pkgrel} else make "ARCH=${ARCH}" EXTRAVERSION=-${pkgrel} fi _target_pkgname="uboot4extlinux-$(echo ${i} | awk '{print tolower($0)}')" _destdir="build/${_target_pkgname}" install -d ${_destdir} mv -f u-boot-sunxi-with-spl.bin "${_destdir}" done } package_uboot4extlinux-a10-olinuxino-lime() { pkgdesc="U-Boot with Extlinux support for A10 OLinuXino Lime" provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') install=${pkgbase}.install cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a10s-olinuxino-m() { pkgdesc="U-Boot with Extlinux support for A10s OLinuXino Micro" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot4extlinux-a10s-olinuxino-micro') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a13-olinuxino() { pkgdesc="U-Boot with Extlinux support for A13 OLinuXino" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a13-olinuxinom() { pkgdesc="U-Boot with Extlinux support for A13 OLinuXino Micro" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot4extlinux-a13-olinuxino-micro') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a20-olinuxino-lime() { pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Lime" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a20-olinuxino-lime2() { pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Lime2" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a20-olinuxino-lime2-emmc() { pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Lime2 with eMMC" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-a20-olinuxino_micro() { pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Micro" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot-a20-olinuxino-micro') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-bananapi() { pkgdesc="U-Boot with Extlinux support for Banana Pi" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-bananapro() { pkgdesc="U-Boot with Extlinux support for Banana Pro" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-chip() { pkgdesc="U-Boot with Extlinux support for C.H.I.P" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-cubieboard() { pkgdesc="U-Boot with Extlinux support for Cubieboard" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-cubieboard2() { pkgdesc="U-Boot with Extlinux support for Cubieboard 2" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-cubietruck() { pkgdesc="U-Boot with Extlinux support for Cubietruck" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-linksprite_pcduino() { pkgdesc="U-Boot with Extlinux support for pcDuino" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot4extlinux-pcduino') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-linksprite_pcduino3() { pkgdesc="U-Boot with Extlinux support for pcDuino3" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot4extlinux-pcduino3') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-linksprite_pcduino3_nano() { pkgdesc="U-Boot with Extlinux support for pcDuino3 Nano" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') replaces=('uboot4extlinux-pcduino3-nano') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-orangepi_2() { pkgdesc="U-Boot with Extlinux for Orange Pi 2" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-orangepi_one() { pkgdesc="U-Boot with Extlinux for Orange Pi One" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-orangepi_pc() { pkgdesc="U-Boot with Extlinux for Orange Pi PC" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" } package_uboot4extlinux-orangepi_plus() { pkgdesc="U-Boot with Extlinux for Orange Pi Plus" install=${pkgbase}.install provides=('uboot4extlinux-sunxi') conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi') cd "u-boot-${pkgver}" install -d "${pkgdir}/usr/lib/u-boot/${pkgname}/" install -Dm644 "build/${pkgname}/u-boot-sunxi-with-spl.bin" "${pkgdir}/usr/lib/u-boot/${pkgname}" install -Dm644 "${srcdir}/extlinux.conf" "${pkgdir}/usr/lib/u-boot/${pkgname}" sed < "$srcdir/install-uboot4extlinux.sh.in" > "${pkgdir}/usr/lib/u-boot/${pkgname}/install-uboot4extlinux.sh" \ -e "s|@u_boot_with_spl[@]|/usr/lib/u-boot/${pkgname}/u-boot-sunxi-with-spl.bin|g" \ -e "s|@u_boot_with_spl_offset[@]|${u_boot_with_spl_offset}|g" }