New package: dockstar-uboot-2014.04.R4
This commit is contained in:
parent
6f1751ab96
commit
a7fbfb153c
1 changed files with 32 additions and 0 deletions
32
srcpkgs/dockstar-uboot/template
Normal file
32
srcpkgs/dockstar-uboot/template
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Template file for 'kirkwood-uboot'
|
||||
_board=dockstar # It's easy to add also the other kirkwood boards replacing this with "goflexhome goflexnet pogo_e02"
|
||||
pkgname="${_board}-uboot"
|
||||
version=2014.04.R4
|
||||
revision=1
|
||||
wrksrc="u-boot-${version##*.}"
|
||||
only_for_archs="armv5tel"
|
||||
short_desc="(archlinuxarm) u-boot compiled for ${_board}"
|
||||
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||
license="GPL-3"
|
||||
homepage="https://github.com/archlinuxarm/u-boot"
|
||||
distfiles="https://github.com/archlinuxarm/u-boot/archive/${version##*.}.tar.gz http://archlinuxarm.org/os/armv5te/boot/dockstar/uboot-${_board}.env"
|
||||
checksum="22492ec730f0e91e4f732d8793cea39fb5945386eb46e86f3d8446978361c551 ec6522fdb74a41bc2b6f301729c421c9600be1a479bf7932405b39d2f459ada7"
|
||||
skip_extraction="uboot-${_board}.env"
|
||||
|
||||
do_configure() {
|
||||
make ${_board}_config
|
||||
}
|
||||
do_build() {
|
||||
unset CFLAGS CXXFLAGS LDFLAGS
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- u-boot.kwb
|
||||
else
|
||||
make u-boot.kwb
|
||||
fi
|
||||
dd if=u-boot.kwb of=uboot-${_board}.kwb bs=512k conv=sync
|
||||
}
|
||||
do_install() {
|
||||
local srcdir="$XBPS_SRCDISTDIR/$pkgname-$version"
|
||||
vinstall uboot-${_board}.kwb 755 boot
|
||||
vinstall ${srcdir}/uboot-${_board}.env 644 boot
|
||||
}
|
Loading…
Reference in a new issue