代码拉取完成,页面将自动刷新
#!/bin/bash
SRC="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
# check for whitespace in ${SRC} and exit for safety reasons
grep -q "[[:space:]]" <<<"${SRC}" && { echo "\"${SRC}\" contains whitespace. Not supported. Aborting." >&2 ; exit 1 ; }
cd "${SRC}" || exit
source ${SRC}/scripts/common.sh
check_root_user
OUTPUT="${SRC}/output"
ROOTFS="${OUTPUT}/rootfs"
CACHE_ROOTFS_NAME="openEuler-rootfs.tar.zst"
HOST_ARCH=$(uname -m)
############################################
CONFIG_DIR="${SRC}/config"
OVERLAY_DIR="${SRC}/overlay"
SCRIPTS_DIR="${SRC}/scripts"
TOOLS_DIR="${SRC}/tools"
APPS_DIR="${SRC}/apps"
DOWNLOAD_DIR="${OUTPUT}/download"
YUM_CONF="${OVERLAY_DIR}/etc/yum.repos.d/openEuler.repo"
CONFIG_RPM_LIST="${CONFIG_DIR}/rpm.list"
CONFIG_PY_LIST="${CONFIG_DIR}/python.list"
CONFIG_RPM_URLS="${CONFIG_DIR}/urls"
SCRIPTS_CHROOT="${SCRIPTS_DIR}/make_cfg.sh"
############################################
[[ -d ${ROOTFS} ]] && rm -rf ${ROOTFS}
mkdir -p ${OUTPUT} ${ROOTFS}
if [[ ! -d ${DOWNLOAD_DIR} ]]; then
mkdir -p ${DOWNLOAD_DIR}
fi
source ${SRC}/config/board.cfg
source ${SRC}/scripts/install_host_tools.sh
source ${SRC}/scripts/install_bisheng.sh
source ${SRC}/scripts/install_devkit.sh
source ${SRC}/scripts/make_image.sh
source ${SRC}/scripts/install_driver_package.sh
source ${SRC}/scripts/install_rpms.sh
source ${SRC}/scripts/install_gowin_ide.sh
source ${SRC}/scripts/make_rootfs.sh
source ${SRC}/scripts/make_image_310b.sh
function main()
{
start=$(date +%s)
install_host_tools
make_filesystem
install_driver_package
make_image
end=$(date +%s)
runtime=$(((end-start)/60))
display_alert "Runtime" "$runtime min" "info"
}
main
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。