6 Star 10 Fork 1.2K

Anton Soldatov/arkcompiler_runtime_core

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
gen_wrapper.sh 1.57 KB
Copy Edit Raw Blame History
huangyu authored 2022-07-16 17:41 +08:00 . Update runtime_core code
#!/bin/bash
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
TOP=$(pwd)
CMD=${TOP}/panda/isa/gen.rb
ISA_DATA=${TOP}/panda/isa/isa.yaml
ISA_REQUIRE=${TOP}/panda/isa/isapi.rb
# generated file with multiple template files
# getopts:
# -O: output directory
# -D: date file
# -R: require files
# -I: use ISA_DATA, ISA_REQUIRE as default
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
while getopts "O:D:R:I" arg
do
case "$arg" in
O)
OUTPUT=${OPTARG}
;;
D)
DATA=${OPTARG}
;;
R)
REQUIRE=${OPTARG}
;;
I)
HAS_ISA=true
;;
*)
echo "unkonw argument"
exit 1
;;
esac
done
shift $(($OPTIND - 1))
if [ "${HAS_ISA}" ];then
DATA=${ISA_DATA}
REQUIRE=${ISA_REQUIRE},${REQUIRE}
fi
for TEMPLATE_ARG in "$@"
do
TARGET_FILE=$(basename $TEMPLATE_ARG .erb)
${CMD} --template ${TEMPLATE_ARG} --data ${DATA} --output ${OUTPUT}/${TARGET_FILE} --require ${REQUIRE}
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/igelhaus/arkcompiler_runtime_core.git
git@gitee.com:igelhaus/arkcompiler_runtime_core.git
igelhaus
arkcompiler_runtime_core
arkcompiler_runtime_core
master

Search