blob: bdb144cd072335b95c42fe5786239b9282cffac9 [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
Kelvin Zhang09786122022-02-11 15:56:08 +08008# usage:./scripts/build_all.sh at rtos sdk root dir
Kelvin Zhang14bca5e2021-12-15 19:19:35 +08009
10set -e
11
Kelvin Zhang09786122022-02-11 15:56:08 +080012# Build and upload document
13if [[ "$SUBMIT_TYPE" == "daily" ]]; then
14 make docs
15 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 -
16fi
17
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080018BUILD_COMBINATION="$PWD/scripts/build_combination.txt"
19
Kelvin Zhang0f465a02022-02-11 15:39:54 +080020# Build all projects
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080021i=0
22while IFS= read -r LINE; do
23 [[ "$i" -ne 0 ]] && echo ""
24 i=$((i+1))
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080025 source scripts/env.sh $LINE
kelvin.zhang05852a72022-01-19 10:30:24 +080026 make distclean
bin.chene9875112022-01-18 15:00:50 +080027 make
Xiaohu.Huang7dac8722022-01-18 16:21:29 +080028 if [[ "$SUBMIT_TYPE" == "daily" ]]; then
bin.chen439b9342022-01-18 13:35:42 +080029 source scripts/scp.sh
30 fi
Kelvin Zhang14bca5e2021-12-15 19:19:35 +080031done < "$BUILD_COMBINATION"