15 version = "2011-12-26";
18 pname = "xburst-tools";
22 url = "git://projects.qi-hardware.com/xburst-tools.git";
23 rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
24 sha256 = "1hzdngs1l5ivvwnxjwzc246am6w1mj1aidcf0awh9yw0crzcjnjr";
31 # Workaround build failure on -fno-common toolchains:
32 # mipsel-unknown-linux-uclibc-ld: boothandler.o:(.bss+0x8): multiple definition of
33 # `start_addr'; main.o:(.bss+0x8): first defined here
34 NIX_CFLAGS_COMPILE_FOR_TARGET = "-fcommon";
36 configureFlags = lib.optionals (gccCross != null) [
38 "CROSS_COMPILE=${gccCross.targetPrefix}"
46 # Not to strip cross build binaries (this is for the gcc-cross-wrapper)
47 dontCrossStrip = true;
58 ] ++ lib.optional (gccCross != null) gccCross;
61 broken = stdenv.hostPlatform.isDarwin;
62 description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
63 license = lib.licenses.gpl3;
64 homepage = "http://www.linux-mtd.infradead.org/";
66 platforms = lib.platforms.x86_64;