summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-28 17:18:34 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-28 17:18:34 +0800
commite6776e378906eb2c97ca6ddc7e841982e99d6d33 (patch)
tree78e39554c7c00a5eb606337fc094750af0fb6105
parent29e4c5f324c9af774e3c89a5de8d4f759ba493a5 (diff)
downloadmrust-e6776e378906eb2c97ca6ddc7e841982e99d6d33.tar.gz
Makefile - environment vars for rust_os/Tifflin kernel
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f351ba9d..e89af074 100644
--- a/Makefile
+++ b/Makefile
@@ -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)