CI Build: Adjust CI Build Jobs to New Build System
TF-M has transferred to a new build system.
Cmake commands in new build system are different from
commands in the old one.
To make CI support for the new build system,
build commands generated by CI need to be adjusted to
the new cmake commands.
Change-Id: Ibc7215a9915a973f37f5bc622d19f3b1ae1ed0b8
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
diff --git a/build-docs.sh b/build-docs.sh
index c8f62e3..44aa37d 100755
--- a/build-docs.sh
+++ b/build-docs.sh
@@ -12,8 +12,17 @@
#
set -ex
-mkdir trusted-firmware-m/build
-cd trusted-firmware-m/build
-cmake ../ -G"Unix Makefiles" -DTARGET_PLATFORM=AN521 -DCOMPILER=GNUARM
-cmake --build ./ -- install_doc
-cmake --build ./ -- install_userguide
+
+cd mbedtls
+git apply ../trusted-firmware-m/lib/ext/mbedcrypto/*.patch
+
+mkdir ../trusted-firmware-m/build
+cd ../trusted-firmware-m/build
+
+cmake -S .. -B . -DTFM_PLATFORM=mps2/an521 \
+ -DCMAKE_TOOLCHAIN_FILE=toolchain_GNUARM.cmake \
+ -DMBEDCRYPTO_PATH=../../mbedtls \
+ -DTFM_TEST_REPO_PATH=../../tf-m-tests \
+ -DMCUBOOT_PATH=../../mcuboot
+cmake --build ./ -- tfm_docs_refman_html
+cmake --build ./ -- tfm_docs_userguide_html