mirror of https://github.com/ARMmbed/mbed-os.git
Generate psa_manifest/sid.h
parent
798e3c393a
commit
ef76ec83ee
|
@ -24,7 +24,14 @@
|
|||
#include "unity.h"
|
||||
#include "utest.h"
|
||||
#include "psa/client.h"
|
||||
#include "psa_client_tests_part1_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_CLIENT_TESTS_PART1
|
||||
#define USE_CLIENT_TESTS_PART1
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
#if defined(TARGET_TFM)
|
||||
#include "psa/service.h"
|
||||
|
|
|
@ -29,7 +29,14 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_client_tests_part1_partition.h"
|
||||
#include "psa_client_tests_part1_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_CLIENT_TESTS_PART1
|
||||
#define USE_CLIENT_TESTS_PART1
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -24,9 +24,19 @@
|
|||
#include "unity.h"
|
||||
#include "utest.h"
|
||||
#include "psa/client.h"
|
||||
#include "psa_server_tests_part1_ifs.h"
|
||||
#include "server_tests.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART1
|
||||
#define USE_SERVER_TESTS_PART1
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART2
|
||||
#define USE_SERVER_TESTS_PART2
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
#if defined(TARGET_TFM)
|
||||
#include "psa/service.h"
|
||||
#endif
|
||||
|
|
|
@ -19,9 +19,19 @@
|
|||
#include "psa/client.h"
|
||||
#include "psa/service.h"
|
||||
#include "psa_server_tests_part1_partition.h"
|
||||
#include "psa_server_tests_part2_ifs.h"
|
||||
#include "server_tests.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART1
|
||||
#define USE_SERVER_TESTS_PART1
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART2
|
||||
#define USE_SERVER_TESTS_PART2
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
/**
|
||||
* Process a generic connect message to TEST ROT_SRV.
|
||||
* @return PSA_SUCCESS or negative error code if failed.
|
||||
|
|
|
@ -29,8 +29,17 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_server_tests_part1_partition.h"
|
||||
#include "psa_server_tests_part1_ifs.h"
|
||||
#include "psa_server_tests_part2_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART1
|
||||
#define USE_SERVER_TESTS_PART1
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART2
|
||||
#define USE_SERVER_TESTS_PART2
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -29,7 +29,17 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_server_tests_part2_partition.h"
|
||||
#include "psa_server_tests_part2_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART1
|
||||
#define USE_SERVER_TESTS_PART1
|
||||
#endif
|
||||
#ifndef USE_SERVER_TESTS_PART2
|
||||
#define USE_SERVER_TESTS_PART2
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -26,7 +26,14 @@
|
|||
#include "unity.h"
|
||||
#include "utest.h"
|
||||
#include "psa/client.h"
|
||||
#include "psa_smoke_tests_part1_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SMOKE_TESTS_PART1
|
||||
#define USE_SMOKE_TESTS_PART1
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
#if defined(TARGET_TFM)
|
||||
#include "psa/service.h"
|
||||
|
|
|
@ -29,7 +29,14 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_smoke_tests_part1_partition.h"
|
||||
#include "psa_smoke_tests_part1_ifs.h"
|
||||
|
||||
#ifndef USE_PSA_TEST_PARTITIONS
|
||||
#define USE_PSA_TEST_PARTITIONS
|
||||
#endif
|
||||
#ifndef USE_SMOKE_TESTS_PART1
|
||||
#define USE_SMOKE_TESTS_PART1
|
||||
#endif
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
/* Copyright (c) 2019 ARM Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
|
||||
|
||||
#ifndef SID_H
|
||||
#define SID_H
|
||||
|
||||
/*************************** Service Partitions ******************************/
|
||||
|
||||
#define PSA_ITS_GET 0x00011A00
|
||||
#define PSA_ITS_SET 0x00011A01
|
||||
#define PSA_ITS_INFO 0x00011A02
|
||||
#define PSA_ITS_REMOVE 0x00011A03
|
||||
#define PSA_ITS_RESET 0x00011A04
|
||||
#define PSA_PLATFORM_LC_GET 0x00011000
|
||||
#define PSA_PLATFORM_LC_SET 0x00011001
|
||||
#define PSA_PLATFORM_SYSTEM_RESET 0x00011002
|
||||
#define PSA_CRYPTO_INIT_ID 0x00000F00
|
||||
#define PSA_MAC_ID 0x00000F01
|
||||
#define PSA_HASH_ID 0x00000F02
|
||||
#define PSA_ASYMMETRIC_ID 0x00000F03
|
||||
#define PSA_SYMMETRIC_ID 0x00000F04
|
||||
#define PSA_AEAD_ID 0x00000F05
|
||||
#define PSA_KEY_MNG_ID 0x00000F06
|
||||
#define PSA_RNG_ID 0x00000F07
|
||||
#define PSA_CRYPTO_FREE_ID 0x00000F08
|
||||
#define PSA_GENERATOR_ID 0x00000F09
|
||||
#define PSA_ENTROPY_ID 0x00000F0A
|
||||
|
||||
/*************************** Test Partitions *********************************/
|
||||
|
||||
#ifdef USE_PSA_TEST_PARTITIONS
|
||||
|
||||
#ifdef USE_CLIENT_TESTS_PART1
|
||||
#define PART1_ROT_SRV1 0x00001A05
|
||||
#define DROP_CONN 0x00001A06
|
||||
#define SECURE_CLIENTS_ONLY 0x00001A07
|
||||
#endif
|
||||
|
||||
#ifdef USE_SERVER_TESTS_PART1
|
||||
#define CONTROL 0x00001A01
|
||||
#define TEST 0x00001A02
|
||||
#endif
|
||||
|
||||
#ifdef USE_SERVER_TESTS_PART2
|
||||
#define ROT_SRV_REVERSE 0x00001A03
|
||||
#define ROT_SRV_DB_TST 0x00001A04
|
||||
#endif
|
||||
|
||||
#ifdef USE_SMOKE_TESTS_PART1
|
||||
#define ROT_SRV1 0x00001A00
|
||||
#endif
|
||||
|
||||
#endif // USE_PSA_TEST_PARTITIONS
|
||||
|
||||
#endif // SID_H
|
|
@ -24,7 +24,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "psa_crypto_srv_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
#include "psa/client.h"
|
||||
#include "crypto.h"
|
||||
#include "crypto_platform_spe.h"
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_crypto_srv_partition.h"
|
||||
#include "psa_crypto_srv_ifs.h"
|
||||
#include "psa_its_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "psa_platform_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
#include "psa/lifecycle.h"
|
||||
#include "psa/client.h"
|
||||
#include "mbed_toolchain.h"
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_platform_partition.h"
|
||||
#include "psa_platform_ifs.h"
|
||||
#include "psa_its_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "psa/client.h"
|
||||
#include "psa/storage_common.h"
|
||||
#include "psa/internal_trusted_storage.h"
|
||||
#include "psa_its_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
psa_status_t psa_its_set(psa_storage_uid_t uid, uint32_t data_length, const void *p_data, psa_storage_create_flags_t create_flags)
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_its_partition.h"
|
||||
#include "psa_its_ifs.h"
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -29,10 +29,7 @@
|
|||
#include "spm_panic.h"
|
||||
#include "spm_internal.h"
|
||||
#include "psa_{{partition.name|lower}}_partition.h"
|
||||
#include "psa_{{partition.name|lower}}_ifs.h"
|
||||
{% for partition in dependent_partitions %}
|
||||
#include "psa_{{partition|lower}}_ifs.h"
|
||||
{% endfor %}
|
||||
#include "psa_manifest/sid.h"
|
||||
|
||||
|
||||
/* Threads stacks */
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/* Copyright (c) 2019 ARM Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
|
||||
|
||||
#ifndef SID_H
|
||||
#define SID_H
|
||||
|
||||
/*************************** Service Partitions ******************************/
|
||||
|
||||
{% for partition in service_partitions %}
|
||||
{% for rot_srv in partition.rot_services %}
|
||||
#define {{rot_srv.name|upper}} {{rot_srv.id}}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
/*************************** Test Partitions *********************************/
|
||||
|
||||
#ifdef USE_PSA_TEST_PARTITIONS
|
||||
|
||||
{% for partition in test_partitions %}
|
||||
#ifdef USE_{{partition.name|upper}}
|
||||
{% for rot_srv in partition.rot_services %}
|
||||
#define {{rot_srv.name|upper}} {{rot_srv.id}}
|
||||
{% endfor %}
|
||||
#endif
|
||||
|
||||
{% endfor %}
|
||||
#endif // USE_PSA_TEST_PARTITIONS
|
||||
|
||||
#endif // SID_H
|
||||
{# End of file #}
|
|
@ -15,8 +15,13 @@
|
|||
"output": "components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/autogen/tfm_service_list.inc"
|
||||
},
|
||||
{
|
||||
"name": "Secure Service siganls list",
|
||||
"name": "Secure Service signals list",
|
||||
"template": "tools/psa/tfm/templates/tfm_spm_signal_defs.h.tpl",
|
||||
"output": "components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/autogen/tfm_spm_signal_defs.h"
|
||||
},
|
||||
{
|
||||
"name": "Mappings from RoT Service names to SIDs",
|
||||
"template": "tools/psa/tfm/templates/sid.h.tpl",
|
||||
"output": "components/TARGET_PSA/inc/psa_manifest/sid.h"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue