aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cargo_embargo.json11
-rw-r--r--rules.mk22
2 files changed, 33 insertions, 0 deletions
diff --git a/cargo_embargo.json b/cargo_embargo.json
index e32838b..928ccdf 100644
--- a/cargo_embargo.json
+++ b/cargo_embargo.json
@@ -27,6 +27,17 @@
"no_std": true
}
}
+ },
+ {
+ "generate_androidbp": false,
+ "generate_rulesmk": true,
+ "features": [
+ ],
+ "package": {
+ "spin": {
+ "no_std": true
+ }
+ }
}
]
}
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..15d9af6
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,22 @@
+# This file is generated by cargo_embargo.
+# Do not modify this file after the LOCAL_DIR line
+# because the changes will be overridden on upgrade.
+# Content before the first line starting with LOCAL_DIR is preserved.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := spin
+MODULE_RUST_CRATE_TYPES := rlib
+MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs
+MODULE_ADD_IMPLICIT_DEPS := false
+MODULE_RUST_EDITION := 2015
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="mutex"' \
+ --cfg 'feature="once"' \
+ --cfg 'feature="spin_mutex"'
+
+MODULE_LIBRARY_DEPS := \
+ trusty/user/base/lib/libcompiler_builtins-rust \
+ trusty/user/base/lib/libcore-rust
+
+include make/library.mk