revert and fix uboot-env PKGBUILD from commit 89011692

fw_setenv symlink in uboot-env-2009.11-1-arm.pkg.tar.xz was broken.

  /usr/bin/fw_setenv -> /media/usb/builder/plugapps/core/uboot-env/pkg/usr/bin/fw_printenv

fixed the PKGBUILD and bumped pkgrel version.
This commit is contained in:
Julian Langschaedel 2011-06-15 04:50:19 +02:00
parent b2372b6b0e
commit 0924cebbdd
3 changed files with 58 additions and 0 deletions

36
core/uboot-env/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Jonny Gerold <jonny@fsk141.com>
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
pkgname=uboot-env
_tool=env
pkgver=2009.11
pkgrel=2
pkgdesc="mkimage binary for making uboot kernel images"
arch=('arm')
license=('GPL' 'LGPL')
install=uboot-env.install
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
cd $pkgdir/usr/bin
ln -s fw_printenv fw_setenv
}

View file

@ -0,0 +1,8 @@
# 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

View file

@ -0,0 +1,14 @@
post_install() {
cat <<INSTALL
>>> To print u-boot env please use fw_printenv
>> Configuration file located at /etc/fw_env.config
INSTALL
}
post_upgrade() {
post_install
}
op=$1
shift
$op $*