xbursttools: Cleanup slightly

This commit is contained in:
John Ericson 2018-05-09 22:40:27 -04:00 committed by John Ericson
parent e42a7a5c0b
commit f063a860d6
3 changed files with 18 additions and 18 deletions

View file

@ -57,6 +57,20 @@ rec {
platform = platforms.pogoplug4;
};
ben-nanonote = rec {
config = "mipsel-unknown-linux-uclibc";
arch = "mips";
float = "soft";
platform = {
name = "ben_nanonote";
kernelMajor = "2.6";
kernelArch = "mips";
gcc = {
arch = "mips32";
};
};
};
fuloongminipc = rec {
config = "mipsel-unknown-linux-gnu";
arch = "mips";

View file

@ -1,5 +1,5 @@
{ stdenv, fetchgit, libusb, libusb1, autoconf, automake, confuse, pkgconfig
, gccCross ? null, crossPrefix
, gccCross ? null
}:
let
@ -19,7 +19,7 @@ stdenv.mkDerivation {
'';
configureFlags = if gccCross != null then
"--enable-firmware CROSS_COMPILE=${crossPrefix}-"
"--enable-firmware CROSS_COMPILE=${gccCross.targetPrefix}"
else "";
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)

View file

@ -5512,28 +5512,14 @@ with pkgs;
x11_ssh_askpass = callPackage ../tools/networking/x11-ssh-askpass { };
xbursttools = assert stdenv ? glibc; callPackage ../tools/misc/xburst-tools rec {
xbursttools = callPackage ../tools/misc/xburst-tools {
# It needs a cross compiler for mipsel to build the firmware it will
# load into the Ben Nanonote
crossPrefix = "mipsel-unknown-linux-gnu";
gccCross =
let
pkgsCross = nixpkgsFun {
# Ben Nanonote system
crossSystem = {
config = crossPrefix;
arch = "mips";
float = "soft";
libc = "uclibc";
platform = {
name = "ben_nanonote";
kernelMajor = "2.6";
kernelArch = "mips";
};
gcc = {
arch = "mips32";
};
};
crossSystem = lib.systems.examples.ben-nanonote;
};
in
pkgsCross.buildPackages.gccCrossStageStatic;