diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-28 17:18:34 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-28 17:18:34 +0800 |
commit | e6776e378906eb2c97ca6ddc7e841982e99d6d33 (patch) | |
tree | 78e39554c7c00a5eb606337fc094750af0fb6105 | |
parent | 29e4c5f324c9af774e3c89a5de8d4f759ba493a5 (diff) | |
download | mrust-e6776e378906eb2c97ca6ddc7e841982e99d6d33.tar.gz |
Makefile - environment vars for rust_os/Tifflin kernel
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -214,9 +214,14 @@ test: $(RUSTCSRC) output/libcore.hir output/liballoc.hir output/libcollections.h # test_rustos: $(addprefix output/rust_os/,libkernel.hir) +RUSTOS_ENV := RUST_VERSION="mrustc 0.1" +RUSTOS_ENV += TK_GITSPEC="unknown" +RUSTOS_ENV += TK_VERSION="0.1" +RUSTOS_ENV += TK_BUILD="mrustc:0" + output/rust_os/libkernel.hir: ../rust_os/Kernel/Core/main.rs output/libcore.hir output/libstack_dst.hir $(BIN) @mkdir -p $(dir $@) - $(DBG) $(BIN) $< -o $@ --cfg arch=amd64 $(PIPECMD) + $(RUSTOS_ENV) $(DBG) $(BIN) $< -o $@ --cfg arch=amd64 $(PIPECMD) output/libstack_dst.hir: ../rust_os/externals/crates.io/stack_dst/src/lib.rs $(BIN) @mkdir -p $(dir $@) $(DBG) $(BIN) $< -o $@ --cfg feature=no_std $(PIPECMD) |