2020-03-22 14:47:11 +01:00
|
|
|
# U-Boot: Rock64
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
|
|
|
|
pkgname=uboot-rock64
|
2020-03-22 19:52:52 +01:00
|
|
|
pkgver=2020.01
|
2020-04-07 16:38:55 +02:00
|
|
|
pkgrel=3
|
2020-03-22 14:47:11 +01:00
|
|
|
pkgdesc="U-Boot for Rock64"
|
|
|
|
arch=('aarch64')
|
|
|
|
url='http://www.denx.de/wiki/U-Boot/WebHome'
|
|
|
|
license=('GPL')
|
|
|
|
backup=('boot/boot.txt' 'boot/boot.scr')
|
2020-03-22 19:45:17 +01:00
|
|
|
makedepends=('bc' 'git' 'rockchip-tools' 'python' 'swig' 'dtc')
|
2020-03-22 14:47:11 +01:00
|
|
|
install=${pkgname}.install
|
2020-03-22 15:13:10 +01:00
|
|
|
_commit_rkbin=15a3e065a49ba7981945d725207618e92ebe8ebb
|
2020-03-22 14:47:11 +01:00
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
|
|
|
|
"git+https://github.com/rockchip-linux/rkbin.git#commit=$_commit_rkbin"
|
|
|
|
'rk3328trust.ini'
|
|
|
|
'boot.txt'
|
2020-04-07 16:38:55 +02:00
|
|
|
'mkscr'
|
|
|
|
'btrfs_extentio.patch')
|
2020-03-22 21:56:07 +01:00
|
|
|
md5sums=('b6b2e0787b6874e6b57da0a065a84f5a'
|
2020-03-22 14:47:11 +01:00
|
|
|
'SKIP'
|
2020-03-22 19:45:17 +01:00
|
|
|
'48946b910716b90d81f47caafb752fef'
|
2020-04-07 16:38:55 +02:00
|
|
|
'5f1089c471f39b303bccbb9e1fc196f7'
|
|
|
|
'021623a04afd29ac3f368977140cfbfd'
|
|
|
|
'51ff4b7c8cf8833df2f208fac7fafde5')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${srcdir}/u-boot-${pkgver/rc/-rc}/configs
|
|
|
|
echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig
|
|
|
|
echo 'CONFIG_FS_BTRFS=y' >> rock64-rk3328_defconfig
|
|
|
|
echo 'CONFIG_NETCONSOLE=y' >> rock64-rk3328_defconfig
|
|
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> rock64-rk3328_defconfig
|
|
|
|
cd ${srcdir}/u-boot-${pkgver/rc/-rc}/fs/btrfs
|
|
|
|
patch --forward --strip=3 --input="${srcdir}/btrfs_extentio.patch"
|
|
|
|
}
|
2020-03-22 14:47:11 +01:00
|
|
|
|
|
|
|
build() {
|
2020-04-07 16:38:55 +02:00
|
|
|
cd ${srcdir}/u-boot-${pkgver/rc/-rc}
|
2020-03-22 14:47:11 +01:00
|
|
|
|
|
|
|
unset CLFAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
|
|
|
2020-03-22 19:45:17 +01:00
|
|
|
make distclean
|
2020-04-07 11:05:26 +02:00
|
|
|
make rock64-rk3328_defconfig
|
2020-03-22 21:56:07 +01:00
|
|
|
make -j4 EXTRAVERSION=-${pkgrel}
|
2020-03-22 14:47:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}/boot"
|
|
|
|
|
2020-03-22 15:13:10 +01:00
|
|
|
tools/mkimage -n rk3328 -T rksd -d ../rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin "${pkgdir}/boot/idbloader.img"
|
|
|
|
cat ../rkbin/bin/rk33/rk322xh_miniloader_v2.50.bin >> "${pkgdir}/boot/idbloader.img"
|
2020-03-22 14:47:11 +01:00
|
|
|
|
|
|
|
loaderimage --pack --uboot u-boot-dtb.bin "${pkgdir}/boot/uboot.img" 0x200000
|
|
|
|
|
|
|
|
trust_merger ../rk3328trust.ini
|
|
|
|
|
|
|
|
cp u-boot-dtb.bin trust.img "${pkgdir}/boot"
|
|
|
|
|
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}/boot/boot.scr"
|
|
|
|
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
|
|
|
|
}
|
2020-03-22 19:45:17 +01:00
|
|
|
|