summaryrefslogtreecommitdiff
path: root/u-boot-tools/Pkgfile
blob: b9cf96d99365e17dcf27749d3553ecaaa1b0d24f (plain)
    1 # Description: U-Boot tools
    2 # URL: http://www.denx.de/wiki/U-Boot/WebHome
    3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
    4 # Packager: Jose V Beneyto, sepen at crux dot nu
    5 # Depends on:
    6 
    7 name=u-boot-tools
    8 version=2016.11
    9 release=1
   10 source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2)
   11 
   12 build() {
   13   cd u-boot-$version
   14 
   15   # use custom compiler flags
   16   sed -e "/^HOSTCFLAGS/ s/-O2/\$(CUSTOMCFLAGS)/" -i Makefile
   17 
   18   make sandbox_config
   19   make V=1 tools CUSTOMCFLAGS="$CFLAGS" TOOLSUBDIRS=""
   20 
   21   install -d -m 0755 $PKG/usr/{bin,share/man/man1}
   22   install -m 0755 tools/mk{,env}image $PKG/usr/bin
   23   install -m 0644 doc/mkimage.1 $PKG/usr/share/man/man1
   24 } 

Generated by cgit