Now yes, I commit properly the xbursttools update. Not to the master HEAD, as

it fails to build. But to the lastest version I manage to build.


svn path=/nixpkgs/trunk/; revision=26965
This commit is contained in:
Lluís Batlle i Rossell 2011-04-25 13:24:51 +00:00
parent 3642e1a505
commit 89d42f7b57
2 changed files with 6 additions and 23 deletions

View File

@ -2,29 +2,24 @@
, gccCross ? null }:
let
version = "2011-04-08";
version = "2011-03-08";
in
stdenv.mkDerivation {
name = "xburst-tools-${version}";
src = fetchgit {
url = git://projects.qi-hardware.com/xburst-tools.git;
rev = "c070928faee41f36920a035eef0dbcabdfa8a2bb";
sha256 = "66ea1a81b71bad599d76691f07a986f9bb2ccecf397e8486b661d8baace3460e";
rev = "a3a38cabf1e854667d90f49f0b4487e28974a3a6";
sha256 = "ac5671708cf9d18de79207530335f6781fa4bedf55288069786f4ecb971c4658";
};
prePatch = ''
find . -name Makefile* -exec sed -i \
-e s/mipsel-openwrt-linux-/mipsel-unknown-linux-/ {} \;
'';
patches = [ ./gcc-4.4.patch ];
preConfigure = ''
sh autogen.sh
'';
configureFlags = if gccCross != null then "--enable-firmware" else "";
configureFlags = if gccCross != null then
"--enable-firmware CROSS_COMPILE=${gccCross.crossConfig}-"
else "";
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
dontCrossStrip = true;

View File

@ -1,12 +0,0 @@
diff --git a/xbboot/host-app/host_main.c b/xbboot/host-app/host_main.c
index 8835869..0d6fcc0 100644
--- a/xbboot/host-app/host_main.c
+++ b/xbboot/host-app/host_main.c
@@ -9,6 +9,7 @@
//
#include <stdio.h>
+#include <stdint.h>
#include <string.h>
#include <usb.h>
#include <time.h>