2010-02-05 21:44:24 +00:00
|
|
|
# Maintainer: Jonny Gerold <jonny@fsk141.com>
|
|
|
|
|
|
|
|
pkgname=uboot-env
|
|
|
|
_tool=env
|
|
|
|
pkgver=2009.11
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="mkimage binary for making uboot kernel images"
|
|
|
|
arch=('arm')
|
|
|
|
license=('GPL' 'LGPL')
|
2010-02-09 17:44:10 +00:00
|
|
|
install=uboot-env.install
|
2010-02-05 21:44:24 +00:00
|
|
|
source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
|
|
|
|
fw_env.config)
|
|
|
|
md5sums=('d94700614225f53c853dfe714eb5fa47'
|
|
|
|
'19c209f4f25ec9835307942836a3de34')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/u-boot-$pkgver
|
|
|
|
touch include/config.{h,mk} include/autoconf.mk{.dep,}
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e 's:HOST_CFLAGS:HOSTCFLAGS:g' \
|
|
|
|
Makefile *.mk tools/Makefile
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e '/CFLAGS/s:-O::' \
|
|
|
|
tools/Makefile
|
|
|
|
|
|
|
|
make SUBDIRS=tools ${_tool}
|
|
|
|
|
|
|
|
mkdir -p $pkgdir/{etc,usr/bin}
|
|
|
|
install -Dm755 tools/env/fw_printenv $pkgdir/usr/bin/
|
|
|
|
cp $srcdir/fw_env.config $pkgdir/etc
|
|
|
|
ln -s $pkgdir/usr/bin/fw_printenv $pkgdir/usr/bin/fw_setenv
|
|
|
|
}
|