diff --git a/default.nix b/default.nix index 350d932..a6011c6 100644 --- a/default.nix +++ b/default.nix @@ -35,7 +35,7 @@ let export XARGO_RUST_SRC="${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library" export CLANG_EXTRA_INCLUDE_DIR="${pkgs.llvmPackages_9.clang-unwrapped.lib}/lib/clang/9.0.1/include" export CARGO_HOME=$(mktemp -d cargo-home.XXX) - make TARGET=${target} GWARGS="${if json == null then "-V ${variant}" else json}" ${if variant == "satellite" then "satman" else "runtime"} + make TARGET=${target} GWARGS="${if json == null then "-V ${variant}" else json}" ${fwtype} ''; # there's probably a better way to go around it diff --git a/src/Makefile b/src/Makefile index 49b735b..5eca52f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,5 @@ TARGET := zc706 GWARGS := -V simple -SATMAN_GWARGS := -V satellite all: runtime @@ -23,11 +22,7 @@ runtime: ../build/runtime.bin ../build/runtime.bin: ../build/firmware/armv7-none-eabihf/release/runtime llvm-objcopy -O binary ../build/firmware/armv7-none-eabihf/release/runtime ../build/runtime.bin -satman_cfg: - mkdir -p ../build - python gateware/$(TARGET).py -r ../build/pl.rs -c ../build/rustc-cfg -m ../build/mem.rs $(SATMAN_GWARGS) - -satmanout: satman_cfg +satmanout: ../build/pl.rs ../build/rustc-cfg cd satman && \ XBUILD_SYSROOT_PATH=`pwd`/../../build/sysroot \ cargo xbuild --release \