2010-07-30 00:26:07 +01:00
|
|
|
{stdenv, fetchgit, libusb, autoconf, automake, confuse
|
|
|
|
, gccCross ? null}:
|
2010-07-30 00:25:42 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2010-07-29";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xburst-tools-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://projects.qi-hardware.com/xburst-tools.git;
|
|
|
|
rev = "00be212db22643ad602eaf60b30eb943f119e78d";
|
|
|
|
sha256 = "66ea1a81b71bad599d76691f07a986f9bb2ccecf397e8486b661d8baace3460e";
|
|
|
|
};
|
|
|
|
|
2010-07-30 00:26:07 +01:00
|
|
|
prePatch = ''
|
|
|
|
find . -name Makefile* -exec sed -i \
|
|
|
|
-e s/mipsel-openwrt-linux-/mipsel-unknown-linux-/ {} \;
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./gcc-4.4.patch ];
|
|
|
|
|
2010-07-30 00:25:42 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
2010-07-30 00:26:07 +01:00
|
|
|
configureFlags = if gccCross != null then "--enable-firmware" else "";
|
|
|
|
|
|
|
|
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
|
|
|
|
dontCrossStrip = true;
|
|
|
|
|
|
|
|
buildInputs = [ libusb autoconf automake confuse ] ++
|
|
|
|
stdenv.lib.optional (gccCross != null) gccCross;
|
2010-07-30 00:25:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
|
|
|
|
license = "GPLv3";
|
|
|
|
homepage = http://www.linux-mtd.infradead.org/;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|