diff options
Diffstat (limited to 'platform/ext/target/nxp/lpcxpresso55s69/scripts/build_tfm_demo.py')
-rw-r--r-- | platform/ext/target/nxp/lpcxpresso55s69/scripts/build_tfm_demo.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/ext/target/nxp/lpcxpresso55s69/scripts/build_tfm_demo.py b/platform/ext/target/nxp/lpcxpresso55s69/scripts/build_tfm_demo.py new file mode 100644 index 0000000000..267a04cf56 --- /dev/null +++ b/platform/ext/target/nxp/lpcxpresso55s69/scripts/build_tfm_demo.py @@ -0,0 +1,24 @@ +# Copyright (c) 2020, Linaro. All rights reserved. +# Copyright (c) 2020, Arm Limited. All rights reserved. +# Copyright (c) 2021, NXP Semiconductors. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause + +import os +import platform + +# Move to the TF-M root directory +os.chdir('../../../../../../') + +# Remove previous build folder +if os.path.isdir("build"): + if platform.system() == 'Windows': + os.system('rd /s /q build') + else: + os.system('rm -rf build') + +# Generate the S and NS makefiles +os.system('cmake -S . -B build -DTFM_PLATFORM=nxp/lpcxpresso55s69 -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake -DCMAKE_BUILD_TYPE=Relwithdebinfo -DBL2=OFF -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=2 -G"Unix Makefiles"') + +# Build the binaries +os.chdir('build') +os.system('make install')
\ No newline at end of file |