forked from M-Labs/artiq-zynq
enabled L2 cache and optimized ethernet
parent
2faf74f708
commit
e592efb2b8
@ -0,0 +1,26 @@
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
with pkgs;
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-xbuild";
|
||||
version = "0.5.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rust-osdev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "08mpnj3l6bcm1jg22lw1gcs0lkm4320fwl4p5y1s44w64963kzf7";
|
||||
};
|
||||
|
||||
patches = [./xbuild.patch];
|
||||
|
||||
cargoSha256 = "1pj4x8y5vfpnn8vhxqqm3vicn29870r3jh0b17q3riq4vz1a2afp";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc";
|
||||
homepage = "https://github.com/rust-osdev/cargo-xbuild";
|
||||
license = with licenses; [ mit asl20 ];
|
||||
maintainers = with maintainers; [ johntitor xrelkd ];
|
||||
};
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
diff --git a/src/sysroot.rs b/src/sysroot.rs
|
||||
index 1f3c8d1..e5615ee 100644
|
||||
--- a/src/sysroot.rs
|
||||
+++ b/src/sysroot.rs
|
||||
@@ -163,7 +163,7 @@ version = "0.0.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies.compiler_builtins]
|
||||
-version = "0.1.0"
|
||||
+git = "https://git.m-labs.hk/pca006132/compiler-builtins-zynq.git"
|
||||
"#;
|
||||
|
||||
let mut stoml = TOML.to_owned();
|
Loading…
Reference in New Issue