SUMMARY="utilities for working with Das U-Boot" 
DESCRIPTION="This package includes the mkimage program, which allows generation
of U-Boot images in various formats."
HOMEPAGE="http://www.denx.de/wiki/U-Boot/Documentation" 
REVISION="1"
ARCHITECTURES="x86_gcc2 x86_64"

SOURCE_URI="http://ftp.denx.de/pub/u-boot/u-boot-2012.10.tar.bz2"
SOURCE_DIR="u-boot-$portVersion"
CHECKSUM_SHA256="dddec75070b5faa5df463085e3e1d27c6d058ec3481c666917baa961956d4d17"
PATCHES="u_boot_tools-$portVersion.patchset"

PROVIDES="
	u_boot_tools = $portVersion
	cmd:mkimage
	cmd:mkenvimage
"

REQUIRES="
	haiku
"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:make
"

BUILD()
{
	cp include/image.h include/uimage.h
	make tools
}

INSTALL()
{
	mkdir -p $binDir
	cp tools/mkimage $binDir
	cp tools/mkenvimage $binDir
}

LICENSE="GNU GPL v2"
COPYRIGHT="2003 - 2012 U-Boot"
