(this doesn't work)
with import <nixpkgs> { | |
crossSystem = { | |
system = "mipsel-linux-gnu"; | |
withTLS = true; | |
platform = { | |
uboot = null; | |
name = "malta"; | |
kernelArch = "mips"; | |
kernelBaseConfig = "malta_defconfig"; | |
kernelHeadersBaseConfig = "malta_defconfig"; | |
kernelTarget = "uImage"; | |
gcc = { abi = "gnu"; } ; | |
kernelAutoModules = false; | |
kernelModules = false; | |
kernelPreferBuiltin = true; | |
}; | |
}; | |
}; | |
let nocheck = d : lib.overrideDerivation d (a: { | |
doCheck = stdenv.buildPlatform == stdenv.hostPlatform; | |
}); | |
in rec { | |
hello = (nocheck pkgs.hello); | |
linux = linux_latest; | |
kernel = lib.overrideDerivation linux (a: { | |
name = "nixwrt_kernel"; | |
}); | |
all = buildEnv { | |
name = "nixwrt"; | |
paths = [ hello pkgs.busybox ]; | |
}; | |
} |
This comment has been minimized.
This comment has been minimized.
For the avoidance of doubt, the command I'm running is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
telent commentedNov 22, 2017
I am trying to cross-compile a mips kernel for my router, building on an x86-64 machine. However, I cobbled it together by copypasta and cargo-culting and perhaps unsurprisingly it dosn't work. It dies with the error
Can anyone see what I'm doing wrong?