Skip to content

Commit f234a1d

Browse files
committed
Unify PSA code generators
1 parent fa65546 commit f234a1d

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,5 @@ matrix:
324324
- NAME=psa-autogen
325325
script:
326326
# Run SPM code generators and check that changes are not needed
327-
- python tools/psa/generate_mbed_spm_partition_code.py
328-
- git diff --exit-code
329-
- python tools/psa/generate_tfm_partition_code.py
327+
- python tools/psa/generate_partition_code.py
330328
- git diff --exit-code

tools/psa/generate_partition_code.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/python
2+
# Copyright (c) 2017-2019 ARM Limited
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
from generate_mbed_spm_partition_code import generate_psa_code
19+
from generate_tfm_partition_code import generate_tfm_code
20+
21+
generate_psa_code()
22+
generate_tfm_code()

0 commit comments

Comments
 (0)