From 84821232f805a4137eeee59c5739eb78bb8a7e9b Mon Sep 17 00:00:00 2001 From: Mattias Nissler Date: Mon, 8 Aug 2016 13:59:19 +0200 Subject: Wire up NVRAM Trusty app. This pulls together all the pieces to compile Trusty app that implements the NVRAM HAL logic, accessible via Trusty IPC. BUG: 27194378 Change-Id: I909a23456a071f3418f6d437217d788ce4343d57 --- manifest.c | 25 +++++++++++++++++++++++++ rules.mk | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 manifest.c create mode 100644 rules.mk diff --git a/manifest.c b/manifest.c new file mode 100644 index 0000000..677fb70 --- /dev/null +++ b/manifest.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2016 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. + */ + +#include + +trusty_app_manifest_t TRUSTY_APP_MANIFEST_ATTRS trusty_app_manifest = { + // UUID: {d62856cf-0ba2-4381-ada1-b6371ba90eb9} + {0xd62856cf, + 0x0ba2, + 0x4381, + {0xad, 0xa1, 0xb6, 0x37, 0x1b, 0xa9, 0x0e, 0xb9}}, +}; diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..f5821bb --- /dev/null +++ b/rules.mk @@ -0,0 +1,36 @@ +# +# Copyright (C) 2016 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) + +MODULE := $(LOCAL_DIR) + +MODULE_SRCS += \ + $(LOCAL_DIR)/manifest.c \ + $(LOCAL_DIR)/secure_storage.cpp + +MODULE_CPPFLAGS := -Wall -Werror -Wextra -std=c++11 + +MODULE_DEPS += \ + lib/libc-trusty \ + lib/storage \ + system/nvram/core + +IPC := ipc + +include $(LOCAL_DIR)/$(IPC)/rules.mk + +include make/module.mk -- cgit v1.2.3