diff options
author | Mattias Nissler <mnissler@google.com> | 2016-08-08 13:59:19 +0200 |
---|---|---|
committer | Mattias Nissler <mnissler@google.com> | 2016-08-08 14:00:21 +0200 |
commit | 84821232f805a4137eeee59c5739eb78bb8a7e9b (patch) | |
tree | 7caea53bd7d6efe33602a85397a8a7bd09ab44b9 | |
parent | 2d956d8584bef62dabe7ea1b66434094f511246f (diff) | |
download | nvram-84821232f805a4137eeee59c5739eb78bb8a7e9b.tar.gz |
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
-rw-r--r-- | manifest.c | 25 | ||||
-rw-r--r-- | rules.mk | 36 |
2 files changed, 61 insertions, 0 deletions
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.h> + +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 |