diff options
author | Rajesh Nyamagoud <nyamagoud@google.com> | 2020-03-10 17:10:13 -0700 |
---|---|---|
committer | Rajesh Nyamagoud <nyamagoud@google.com> | 2020-03-10 17:10:13 -0700 |
commit | 781f7fb72b6a35d3c6a024bbc29f885fa6859a03 (patch) | |
tree | ef9ab0b164846af549f938ec047b2b6717dcaa26 | |
parent | f87a786fb962347d86a76c26e3a2e0f68ee7883e (diff) | |
download | gatekeeper-781f7fb72b6a35d3c6a024bbc29f885fa6859a03.tar.gz |
Switch from manifest.c to manifest.json config
Bug: 130560272
Change-Id: I008eed87f78d46f74bc9c8f9ad1def0deb8cf17c
-rw-r--r-- | manifest.c | 36 | ||||
-rw-r--r-- | manifest.json | 5 | ||||
-rw-r--r-- | rules.mk | 3 |
3 files changed, 7 insertions, 37 deletions
diff --git a/manifest.c b/manifest.c deleted file mode 100644 index 6796462..0000000 --- a/manifest.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2015 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 <stddef.h> -#include <trusty_app_manifest.h> - -// TODO: generate my own UUID -trusty_app_manifest_t TRUSTY_APP_MANIFEST_ATTRS trusty_app_manifest = { - - /* UUID : {38ba0cdc-df0e-11e4-9869-233fb6ae4795} */ - {0x38ba0cdc, - 0xdf0e, - 0x11e4, - {0x98, 0x69, 0x23, 0x3f, 0xb6, 0xae, 0x47, 0x95}}, - - /* optional configuration options here */ - { - /* openssl need a larger heap */ - TRUSTY_APP_CONFIG_MIN_HEAP_SIZE(2 * 4096), - - /* openssl need a larger stack */ - TRUSTY_APP_CONFIG_MIN_STACK_SIZE(1 * 4096), - }, -}; diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..61aa479 --- /dev/null +++ b/manifest.json @@ -0,0 +1,5 @@ +{ + "uuid": "38ba0cdc-df0e-11e4-9869-233fb6ae4795", + "min_heap": 8192, + "min_stack": 4096 +} @@ -17,8 +17,9 @@ LOCAL_DIR := $(GET_LOCAL_DIR) MODULE := $(LOCAL_DIR) +MANIFEST := $(LOCAL_DIR)/manifest.json + MODULE_SRCS += \ - $(LOCAL_DIR)/manifest.c \ $(LOCAL_DIR)/trusty_gatekeeper.cpp \ IPC := ipc |