diff options
author | Per Larsen <perlarsen@google.com> | 2023-06-28 03:18:04 +0000 |
---|---|---|
committer | Andrei Homescu <ahomescu@google.com> | 2023-11-01 22:53:06 +0000 |
commit | 8d953ff0360bde75f5726d1fb548d6753e1267db (patch) | |
tree | 07733f9af3c40558948741df757972d13e31f580 | |
parent | fc8029addeafaa6db706ec9597e34ff6fc2e8d75 (diff) | |
download | pkcs1-8d953ff0360bde75f5726d1fb548d6753e1267db.tar.gz |
Adding autogenerated Trusty makefile rules
Bug: 281857510
Test: build.py --skip-tests qemu-generic-arm64-test-debug
Change-Id: I11561382d51e173c4a2cc07def60d2557f50b0bb
-rw-r--r-- | cargo2rulesmk.json | 4 | ||||
-rw-r--r-- | patches/rules.mk.diff | 13 | ||||
-rw-r--r-- | rules.mk | 22 |
3 files changed, 39 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..5e7ca8a --- /dev/null +++ b/patches/rules.mk.diff @@ -0,0 +1,13 @@ +diff --git a/rules.mk b/rules.mk +index b31c531..6b9ef75 100644 +--- a/rules.mk ++++ b/rules.mk +@@ -15,6 +15,8 @@ MODULE_RUSTFLAGS += \ + + MODULE_LIBRARY_DEPS := \ + external/rust/crates/der \ ++ external/rust/crates/pkcs8 \ + external/rust/crates/spki \ ++ external/rust/crates/zeroize \ + + include make/library.mk diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..6b9ef75 --- /dev/null +++ b/rules.mk @@ -0,0 +1,22 @@ +# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json. +# Do not modify this file as changes will be overridden on upgrade. + +LOCAL_DIR := $(GET_LOCAL_DIR) +MODULE := $(LOCAL_DIR) +MODULE_CRATE_NAME := pkcs1 +MODULE_SRCS := \ + $(LOCAL_DIR)/src/lib.rs \ + +MODULE_RUST_EDITION := 2021 +MODULE_RUSTFLAGS += \ + --cfg 'feature="alloc"' \ + --cfg 'feature="pkcs8"' \ + --cfg 'feature="zeroize"' \ + +MODULE_LIBRARY_DEPS := \ + external/rust/crates/der \ + external/rust/crates/pkcs8 \ + external/rust/crates/spki \ + external/rust/crates/zeroize \ + +include make/library.mk |