From 8d953ff0360bde75f5726d1fb548d6753e1267db Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Wed, 28 Jun 2023 03:18:04 +0000 Subject: Adding autogenerated Trusty makefile rules Bug: 281857510 Test: build.py --skip-tests qemu-generic-arm64-test-debug Change-Id: I11561382d51e173c4a2cc07def60d2557f50b0bb --- cargo2rulesmk.json | 4 ++++ patches/rules.mk.diff | 13 +++++++++++++ rules.mk | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 cargo2rulesmk.json create mode 100644 patches/rules.mk.diff create mode 100644 rules.mk 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 -- cgit v1.2.3