mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
it compiles/works, but the configuration isn't correct
This commit is contained in:
parent
fc7bd68722
commit
f994ceb7ce
3 changed files with 55 additions and 0 deletions
36
core/uboot-env/PKGBUILD
Normal file
36
core/uboot-env/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 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')
|
||||
source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
|
||||
fw_env.config)
|
||||
|
||||
install=uboot-env.install
|
||||
|
||||
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
|
||||
}
|
5
core/uboot-env/fw_env.config
Normal file
5
core/uboot-env/fw_env.config
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 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
|
14
core/uboot-env/uboot-env.install
Normal file
14
core/uboot-env/uboot-env.install
Normal 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 $*
|
Loading…
Reference in a new issue