1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
6 pkgdesc='Utilities for working with Das U-Boot'
8 url="http://www.denx.de/wiki/U-Boot/WebHome"
10 backup=('etc/fw_env.config')
11 source=("ftp://ftp.denx.de/pub/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
12 'no-cross-compiler.patch')
13 md5sums=('6dcc2cc47ecc96d4da984556d601a8c0'
14 'c84bcc2ceffdf35f937d01e7f8db2afd')
17 cd ${srcdir}/${pkgname}-${pkgver}
19 patch -Np1 -i ${srcdir}/no-cross-compiler.patch
21 make sheevaplug_config
23 # create files normally created by cross-compiler
24 touch include/autoconf.mk{,dep}
25 mkdir -p cpu/arm926ejs
26 touch {cpu/arm926ejs,examples/standalone,tools,tools/env}/.depend
28 make tools HOSTCC="gcc" HOSTSTRIP=/bin/true CROSS_COMPILE=""
33 cd ${srcdir}/${pkgname}-${pkgver}
35 install -d ${pkgdir}/usr/bin
36 install -m755 tools/mkimage ${pkgdir}/usr/bin/
37 install -m755 tools/env/fw_printenv ${pkgdir}/usr/bin/
38 ln -sf /usr/bin/fw_printenv ${pkgdir}/usr/bin/fw_setenv
40 install -d ${pkgdir}/etc
41 install -m644 tools/env/fw_env.config ${pkgdir}/etc/