代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
# Version: 3.0
# Date: 2023-11-06
# This bash script generates a CMSIS Software Pack: CMSIS-FreeRTOS
#
set -o pipefail
# Set version of gen pack library
# For available versions see https://github.com/Open-CMSIS-Pack/gen-pack/tags.
# Use the tag name without the prefix "v", e.g., 0.7.0
REQUIRED_GEN_PACK_LIB="0.11.0"
# Set default command line arguments
DEFAULT_ARGS=(-c "v")
# Pack warehouse directory - destination
# Default: ./output
#
PACK_OUTPUT=./output
# Temporary pack build directory,
# Default: ./build
#
PACK_BUILD=./build
# Specify directory names to be added to pack base directory
# An empty list defaults to all folders next to this script.
# Default: empty (all folders)
#
PACK_DIRS="
CMSIS
Documentation
Source
"
# Specify file names to be added to pack base directory
# Default: empty
#
PACK_BASE_FILES="
LICENSE
"
# Specify file names to be deleted from pack build directory
# Default: empty
#
PACK_DELETE_FILES="
Documentation/Doxygen
"
# Specify patches to be applied
# Default: empty
#
# PACK_PATCH_FILES=""
# Specify addition argument to packchk
# Default: empty
#
# PACKCHK_ARGS=()
# Specify additional dependencies for packchk
# Default: empty
#
PACKCHK_DEPS="
ARM.CMSIS.pdsc
ARM.Cortex_DFP.pdsc
"
# Optional: restrict fallback modes for changelog generation
# Default: full
# Values:
# - full Tag annotations, release descriptions, or commit messages (in order)
# - release Tag annotations, or release descriptions (in order)
# - tag Tag annotations only
#
PACK_CHANGELOG_MODE="full"
#
# custom pre-processing steps
#
# usage: preprocess <build>
# <build> The build folder
#
function preprocess() {
# add custom steps here to be executed
# before populating the pack build folder
pushd ./Documentation/Doxygen/ > /dev/null
echo "Changing working directory to $(pwd)"
echo "Executing ./gen_doc.sh"
./gen_doc.sh
popd > /dev/null
echo "Changing working directory to $(pwd)"
return 0
}
#
# custom post-processing steps
#
# usage: postprocess <build>
# <build> The build folder
#
function postprocess() {
# add custom steps here to be executed
# after populating the pack build folder
# but before archiving the pack into output folder
return 0
}
############ DO NOT EDIT BELOW ###########
# Set GEN_PACK_LIB_PATH to use a specific gen-pack library root
# ... instead of bootstrap based on REQUIRED_GEN_PACK_LIB
if [[ -f "${GEN_PACK_LIB_PATH}/gen-pack" ]]; then
. "${GEN_PACK_LIB_PATH}/gen-pack"
else
. <(curl -sL "https://raw.githubusercontent.com/Open-CMSIS-Pack/gen-pack/main/bootstrap")
fi
gen_pack "${DEFAULT_ARGS[@]}" "$@"
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。