blob: f4e0bf7fd1f2e8ae8a6845a725f9f7448d90c5f4 [file] [log] [blame]
Kelvin Zhang14bca5e2021-12-15 19:19:35 +08001#!/bin/bash
yang.li09520922022-01-12 15:51:51 +08002#
yang.liffa60e52022-01-11 14:38:56 +08003# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
yang.li09520922022-01-12 15:51:51 +08004#
yang.liffa60e52022-01-11 14:38:56 +08005# SPDX-License-Identifier: MIT
yang.li09520922022-01-12 15:51:51 +08006#
yang.liffa60e52022-01-11 14:38:56 +08007
Xiaohu.Huang7db6e4b2022-01-10 16:01:57 +08008#usage:./scripts/build_all.sh at rtos sdk root dir
Kelvin Zhang14bca5e2021-12-15 19:19:35 +08009
10set -e
11
12BUILD_COMBINATION="$PWD/scripts/build_combination.txt"
13
Kelvin Zhang0f465a02022-02-11 15:39:54 +080014# Build all projects
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080015i=0
16while IFS= read -r LINE; do
17 [[ "$i" -ne 0 ]] && echo ""
18 i=$((i+1))
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080019 source scripts/env.sh $LINE
kelvin.zhang05852a72022-01-19 10:30:24 +080020 make distclean
bin.chene9875112022-01-18 15:00:50 +080021 make
Xiaohu.Huang7dac8722022-01-18 16:21:29 +080022 if [[ "$SUBMIT_TYPE" == "daily" ]]; then
bin.chen439b9342022-01-18 13:35:42 +080023 source scripts/scp.sh
24 fi
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080025done < "$BUILD_COMBINATION"
Kelvin Zhang0f465a02022-02-11 15:39:54 +080026
27# Build and upload document
28if [[ "$SUBMIT_TYPE" == "daily" ]]; then
29 make docs
30 cd output/docs/html; find -type f -exec curl --ftp-create-dirs -T {} ftp://platform:platform@10.68.11.163:2222/Documents/Ecosystem/RTOS/rtos-sdk/{} \;; cd -
31fi