1#!/bin/bash 2# Copyright (c) 2023 Huawei Device Co., Ltd. 3# UniProton is licensed under Mulan PSL v2. 4# You can use this software according to the terms and conditions of the Mulan PSL v2. 5# You may obtain a copy of Mulan PSL v2 at: 6# http://license.coscl.org.cn/MulanPSL2 7# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 8# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 9# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 10# See the Mulan PSL v2 for more details. 11 12git clone https://gitee.com/openeuler/libboundscheck.git 13 14cp libboundscheck/include/* ../../../platform/libboundscheck/include 15cp libboundscheck/include/* ../include 16cp libboundscheck/src/* ../../../platform/libboundscheck/src 17rm -rf libboundscheck 18 19pushd ./../../../ 20python build.py $1 21cp output/UniProton/lib/$1/* demos/$1/libs 22cp output/libboundscheck/lib/$1/* demos/$1/libs 23cp -r src/include/uapi/* demos/$1/include 24popd 25