Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced uboot-orangepi_r1 package and bumped uboot-sunxi to 2020.04 #1815

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 22 additions & 12 deletions alarm/uboot-sunxi/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ pkgname=('uboot-a10-olinuxino-lime'
'uboot-cubieboard'
'uboot-cubieboard2'
'uboot-cubietruck'
'uboot-orangepi_r1'
'uboot-pcduino'
'uboot-pcduino3'
'uboot-pcduino3-nano')
pkgver=2017.01
pkgrel=2
pkgver=2020.04
pkgrel=1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('git' 'bc' 'dtc' 'python2')
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')
md5sums=('ad2d82d5b4fa548b2b95bbc26c9bad79'
md5sums=('51113d2288c55110e33a895c65ab9f60'
'95f60c0ae1315e986d8a2aee15d5f854'
'021623a04afd29ac3f368977140cfbfd')

Expand All @@ -41,16 +42,11 @@ boards=('A10-OLinuXino-Lime'
'Cubieboard'
'Cubieboard2'
'Cubietruck'
'orangepi_r1'
'Linksprite_pcDuino'
'Linksprite_pcDuino3'
'Linksprite_pcDuino3_Nano')

prepare() {
cd u-boot-${pkgver}

sed -i 's/env python$/&2/' tools/binman/binman{,.py}
}

build() {
cd u-boot-${pkgver}

Expand All @@ -59,9 +55,9 @@ build() {
for i in ${boards[@]}; do
mkdir ../bin_${i}
make distclean
make ${i}_config
make ${i}_defconfig
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
make EXTRAVERSION=-${pkgrel}
make -j 5 EXTRAVERSION=-${pkgrel}
mv u-boot-sunxi-with-spl.bin ../bin_${i}
done

Expand Down Expand Up @@ -166,6 +162,20 @@ package_uboot-a20-olinuxino-micro() {
install -Dm755 mkscr "${pkgdir}"/boot/mkscr
}

package_uboot-orangepi_r1() {
pkgdesc="U-Boot for Orange Pi R1"
install=${pkgbase}.install
provides=('uboot-sunxi')
conflicts=('uboot-sunxi')

install -d "${pkgdir}"/boot
install -Dm644 bin_orangepi_r1/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
Expand Down