community/uboot-tools to 2022.01-1

This commit is contained in:
Kevin Mihelich 2022-02-07 01:31:59 +00:00
parent 0facbe14ee
commit cafec6b4cb
3 changed files with 32 additions and 54 deletions

View File

@ -1,34 +0,0 @@
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: Jonny Gerold <jonny@fsk141.com>
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
pkgname=uboot-tools
pkgver=2021.01
pkgrel=1
pkgdesc="U-Boot Tools"
arch=('arm' 'armv6h' 'armv7h' 'aarch64')
license=('GPL' 'LGPL')
provides=('uboot-env' 'uboot-mkimage')
replaces=('uboot-env' 'uboot-mkimage')
backup=(etc/fw_env.config)
source=(https://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
fw_env.config)
md5sums=('a3206df1c1b97df7a4ddcdd17cb97d0c'
'5a9dcbae5957f8621080d4bbc0e1520f')
build() {
cd u-boot-${pkgver}
make defconfig
make tools-all CONFIG_KIRKWOOD=y
}
package() {
cd u-boot-${pkgver}
install -dm755 ${pkgdir}/{usr/{bin,share/man/man1},etc}
install -m755 tools/{fit_{check_sign,info},dumpimage,mkimage,mkenvimage,netconsole,ncb,proftool,env/fw_printenv,kwboot} ${pkgdir}/usr/bin
ln -s /usr/bin/fw_printenv ${pkgdir}/usr/bin/fw_setenv
install -m644 ${srcdir}/fw_env.config ${pkgdir}/etc
install -m644 doc/{mkimage,kwboot}.1 ${pkgdir}/usr/share/man/man1
}

View File

@ -1,20 +0,0 @@
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000
# segate dockstar:
# /dev/mtd0 0xc0000 0x20000 0x20000
# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000
# CuBox
# /dev/mtd0 0xc0000 0x10000 0x10000
# CuBox-i/Hummingboard
# /dev/mmcblk0 0x60000 0x2000 0x2000
# Utilite 1
# /dev/mtd1 0x0000 0x2000 0x2000

View File

@ -0,0 +1,32 @@
# Maintainer: Anatol Pomozov
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: Philipp Schrader <philipp.schrader+arch@gmail.com>
# remove when bumped upstream
pkgname=uboot-tools
pkgver=2022.01
pkgrel=1
pkgdesc='U-Boot bootloader utility tools'
arch=(x86_64)
url='https://www.denx.de/wiki/U-Boot/WebHome'
license=(GPL)
depends=(openssl)
source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2{,.sig})
validpgpkeys=('1A3C7F70E08FAB1707809BBF147C39FF9634B72C')
options=(!lto)
sha1sums=('3371c1d58966e9000b4680e90cd29caa212969d2'
'SKIP')
build() {
cd u-boot-$pkgver
make defconfig
make tools-all KBUILD_HOSTLDFLAGS=${LDFLAGS}
}
package() {
install -m 755 -d "$pkgdir"/usr/bin
install -m 755 -t "$pkgdir"/usr/bin/ u-boot-$pkgver/tools/{mk{,env}image,env/fw_printenv,img2srec,dumpimage,netconsole,jtagconsole,ncb}
ln -s fw_printenv "$pkgdir"/usr/bin/fw_setenv
install -m 644 -D u-boot-$pkgver/doc/mkimage.1 "$pkgdir"/usr/share/man/man1/mkimage.1
}