blob: 569eb2ddefa6f9149196316ab8d0cda6dc264a29 [file] [log] [blame]
Dean Birch62c4f082020-01-17 16:13:26 +00001#!/bin/bash
2#-------------------------------------------------------------------------------
Xinyu Zhangff5d7712022-01-14 13:48:59 +08003# Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
Dean Birch62c4f082020-01-17 16:13:26 +00004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7#-------------------------------------------------------------------------------
8
9#
10# Used for CI to build the docs.
11# Expected to have trusted-firmware-m cloned to same level as this git tree
12#
13
14set -ex
Xinyu Zhangb708f572020-09-15 11:43:46 +080015
Xinyu Zhangff5d7712022-01-14 13:48:59 +080016export PATH=$PATH:$GCC_7_3_1_PATH
17
Xinyu Zhangc8dc36d2021-10-13 10:56:11 +080018mkdir -p ${WORKSPACE}/trusted-firmware-m/build/docs
19cd ${WORKSPACE}/trusted-firmware-m/build/docs
Xinyu Zhangb708f572020-09-15 11:43:46 +080020
Xinyu Zhangc8dc36d2021-10-13 10:56:11 +080021cmake -S ${WORKSPACE}/trusted-firmware-m/docs -B .
Xinyu Zhangb708f572020-09-15 11:43:46 +080022cmake --build ./ -- tfm_docs_refman_html
23cmake --build ./ -- tfm_docs_userguide_html