• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/rules.mk b/rules.mk
2index b2ae04d7..0cd09394 100644
3--- a/rules.mk
4+++ b/rules.mk
5@@ -24,5 +24,21 @@ MODULE_RUSTFLAGS += \
6 	--cfg 'libc_ptr_addr_of' \
7 	--cfg 'libc_underscore_const_names' \
8 	--cfg 'libc_union' \
9+	-A unknown-lints \
10+
11+MODULE_LIBRARY_DEPS := \
12+	trusty/user/base/lib/libcompiler_builtins-rust \
13+	trusty/user/base/lib/libcore-rust \
14+
15+ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true)
16+
17+MODULE_RUSTFLAGS += \
18+	--cfg 'feature="trusty_sys"' \
19+
20+MODULE_LIBRARY_DEPS += \
21+	trusty/user/base/lib/libc-trusty \
22+	trusty/user/base/lib/trusty-sys \
23+
24+endif
25
26 include make/library.mk
27