3 Star 1 Fork 7

Kunpeng/KunPengDevBoard-Build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
leeboby 提交于 2024-09-24 16:03 . Add gowin fpga ide
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/kunpeng_compute/KunPengDevBoard-Build.git
git@gitee.com:kunpeng_compute/KunPengDevBoard-Build.git
kunpeng_compute
KunPengDevBoard-Build
KunPengDevBoard-Build
master

搜索帮助