idlize
1#!/bin/bash
2
3# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
17
18. $SCRIPT_DIR/common
19
20EXCLUDE_PANDA_FILE=$DTS_INTERFACES_FILE:$EXCLUDE_PANDA_FILE
21PANDA_LIB_FILES=$(echo $(find $PANDA_LIB_PATH -not -name $(echo $EXCLUDE_PANDA_FILE | sed 's/:/ -not -name /g') -name *.abc -exec echo {}: \;) | tr -d ' ')
22# Set $DTS_INTERFACES_FILE to first position. This is a workaround for the issue: https://rnd-gitlab-msc.huawei.com/rus-os-team/virtual-machines-and-tools/panda/-/issues/18012
23PANDA_LIB_FILES=$PANDA_LIB_PATH/$DTS_INTERFACES_FILE:$PANDA_LIB_FILES
24$PANDA_SDK/$ARCH_TOOLS/bin/ark --load-runtimes=ets --boot-panda-files $PANDA_SDK/ets/etsstdlib.abc:$PANDA_LIB_FILES $@ index.ETSGLOBAL::main
25
26