mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
38 lines
875 B
Bash
38 lines
875 B
Bash
# Maintainer: Jonny Gerold <jonny@fsk141.com>
|
|
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
|
|
|
|
plugrel=2
|
|
|
|
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'
|
|
'03b72041d1962b4136fca67c67347830')
|
|
|
|
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
|
|
}
|