Skip to content

Instantly share code, notes, and snippets.

@jflanglois
Last active July 27, 2020 18:00
Show Gist options
  • Select an option

  • Save jflanglois/a42715c41ccbfbb37d0f915b177c5eb4 to your computer and use it in GitHub Desktop.

Select an option

Save jflanglois/a42715c41ccbfbb37d0f915b177c5eb4 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {
crossSystem = {
libc = "musl";
config = "mips-unknown-linux-musl";
openssl.system = "linux-generic32";
withTLS = true;
platform = {
endian = "big";
kernelArch = "mips";
gcc = { abi = "32"; } ;
bfdEmulation = "elf32btsmip";
};
};
};
buildUBoot { defconfig = "tplink_wdr4300_defconfig"; filesToInstall = [ "u-boot.bin" ]; extraMeta.platforms = [ "mips-linux" ]; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment