summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeston Carvalho <westoncarvalho@google.com>2023-09-12 16:26:54 -0500
committerWeston Carvalho <westoncarvalho@google.com>2024-02-27 14:52:31 -0600
commit890788f7e08bd696aa924fc5e12c8e0c68e22b0d (patch)
treef3aa3bb16486e9f0c4f28abf33fc8e9f31425a56
parent8be311906851d78a9c645eddade78d133dfd1030 (diff)
downloadlib-890788f7e08bd696aa924fc5e12c8e0c68e22b0d.tar.gz
make: Add rules for Secure Storage AIDL
Bug: 278779487 Change-Id: I79c7aff2ddb35a6091c788b92bcd4e6f9cc58e88
-rw-r--r--interface/secure_storage/cpp/include/interface/storage/storage_aidl/ports.h18
-rw-r--r--interface/secure_storage/cpp/rules.mk48
2 files changed, 66 insertions, 0 deletions
diff --git a/interface/secure_storage/cpp/include/interface/storage/storage_aidl/ports.h b/interface/secure_storage/cpp/include/interface/storage/storage_aidl/ports.h
new file mode 100644
index 0000000..061be7e
--- /dev/null
+++ b/interface/secure_storage/cpp/include/interface/storage/storage_aidl/ports.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#pragma once
+
+#define STORAGE_ISECURE_STORAGE_PORT "com.android.hardware.security.see.storage"
diff --git a/interface/secure_storage/cpp/rules.mk b/interface/secure_storage/cpp/rules.mk
new file mode 100644
index 0000000..8884343
--- /dev/null
+++ b/interface/secure_storage/cpp/rules.mk
@@ -0,0 +1,48 @@
+# Copyright (C) 2023 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+
+AIDL_DIR := \
+ hardware/interfaces/staging/security/see/storage/aidl
+
+MODULE := $(LOCAL_DIR)
+
+MODULE_AIDL_FLAGS :=
+
+MODULE_AIDL_LANGUAGE := cpp
+
+MODULE_AIDL_PACKAGE := android/hardware/security/see/storage
+
+MODULE_AIDLS := \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/CreationMode.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/DeleteOptions.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/FileAvailability.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/FileIntegrity.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/FileMode.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/FileProperties.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/IDir.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/IFile.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/ISecureStorage.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/IStorageSession.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/OpenOptions.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/ReadIntegrity.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/RenameOptions.aidl \
+ $(AIDL_DIR)/$(MODULE_AIDL_PACKAGE)/Tamper.aidl \
+
+MODULE_EXPORT_INCLUDES := \
+ $(LOCAL_DIR)/include \
+
+include make/aidl.mk