diff options
author | Per Larsen <perlarsen@google.com> | 2023-06-29 01:14:48 +0000 |
---|---|---|
committer | Andrei Homescu <ahomescu@google.com> | 2023-10-31 03:22:50 +0000 |
commit | ea1b5acb40f203613516188a8f7d714b3bad400c (patch) | |
tree | 4b2aa909a9c71f258912e475705ef78592700faa | |
parent | 50cabfce04c21a3c1d7873a5eeae271dd08a5598 (diff) | |
download | spki-ea1b5acb40f203613516188a8f7d714b3bad400c.tar.gz |
Adding autogenerated Trusty makefile rules
Bug: 281857510
Test: build.py --skip-tests qemu-generic-arm64-test-debug
Change-Id: I62a2090f9227f4a1c75afb237111d04b16577487
-rw-r--r-- | cargo2rulesmk.json | 4 | ||||
-rw-r--r-- | patches/rules.mk.diff | 13 | ||||
-rw-r--r-- | rules.mk | 17 |
3 files changed, 34 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json new file mode 100644 index 0000000..4243146 --- /dev/null +++ b/cargo2rulesmk.json @@ -0,0 +1,4 @@ +{ + "features": "alloc", + "patch": "patches/rules.mk.diff" +} diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff new file mode 100644 index 0000000..13eac9e --- /dev/null +++ b/patches/rules.mk.diff @@ -0,0 +1,13 @@ +diff --git b/rules.mk a/rules.mk +index 25bd083..bd3edb9 100644 +--- b/rules.mk ++++ a/rules.mk +@@ -12,8 +12,6 @@ MODULE_RUSTFLAGS += \ + --cfg 'feature="alloc"' \ + + MODULE_LIBRARY_DEPS := \ +- external/rust/crates/base64ct \ + external/rust/crates/der \ +- external/rust/crates/sha2 \ + + include make/library.mk diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..bd3edb9 --- /dev/null +++ b/rules.mk @@ -0,0 +1,17 @@ +# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json --features . +# Do not modify this file as changes will be overridden on upgrade. + +LOCAL_DIR := $(GET_LOCAL_DIR) +MODULE := $(LOCAL_DIR) +MODULE_CRATE_NAME := spki +MODULE_SRCS := \ + $(LOCAL_DIR)/src/lib.rs \ + +MODULE_RUST_EDITION := 2021 +MODULE_RUSTFLAGS += \ + --cfg 'feature="alloc"' \ + +MODULE_LIBRARY_DEPS := \ + external/rust/crates/der \ + +include make/library.mk |