1# Copyright (c) 2023 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU) 2# Licensed under the Mulan PSL v2. 3# You can use this software according to the terms and conditions of the Mulan PSL v2. 4# You may obtain a copy of Mulan PSL v2 at: 5# http://license.coscl.org.cn/MulanPSL2 6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 8# PURPOSE. 9# See the Mulan PSL v2 for more details. 10set -e 11 12OH_TOP_DIR=$1 13CHCORE_DIR=$2 14COMPILER_DIR=$3 15COMPILER_VER=$4 16if [[ -z "$OH_TOP_DIR" ]]; then 17 OH_TOP_DIR=$(pwd)/../../../.. 18fi 19if [[ -z "$CHCORE_DIR" ]]; then 20 CHCORE_DIR=$(pwd)/.. 21fi 22OH_TEE_FRAMEWORK_DIR=${CHCORE_DIR}/../tee_os_framework/ 23THIRD_PARTY=${OH_TOP_DIR}/third_party/ 24 25# framework output dir 26rm -rf oh_tee 27 28# clean kernel build outputs 29cd ${CHCORE_DIR} 30make clean 31 32# clean framework build outputs 33cd ${OH_TEE_FRAMEWORK_DIR}/build/ 34./clean_framework.sh ${OH_TEE_FRAMEWORK_DIR} 35