3 Star 0 Fork 1

Gitee 极速下载 / BMC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Orange-OpenSource/bmc-cache
克隆/下载
kernel-src-prepare.sh 771 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yoann Ghigoff 提交于 2021-04-08 13:28 . initial commit
#!/bin/bash
# --------------------
# Run this script to extract and generate kernel sources files required to compile BMC
# --------------------
source "$(dirname "$(readlink -f "$0")")/env.sh"
echo "Extracting kernel sources to ${BMCCACHE_BMC_PATH}/linux"
if tar xf ${BMCCACHE_KERNEL_TARXZ} -C ${BMCCACHE_BMC_PATH} && mv ${BMCCACHE_BMC_PATH}/linux-${BMCCACHE_KERNEL_VERSION} ${BMCCACHE_BMC_PATH}/linux; then
echo "Successfully extracted kernel sources to ${BMCCACHE_BMC_PATH}/linux"
else
echo "Failed to extract kernel sources"
exit 1
fi
echo "Preparing kernel sources"
if make -C ${BMCCACHE_BMC_PATH}/linux defconfig && make -C ${BMCCACHE_BMC_PATH}/linux prepare; then
echo "Done preparing kernel sources"
else
echo "Failed to prepare kernel sources"
exit 1
fi
C/C++
1
https://gitee.com/mirrors/BMC.git
git@gitee.com:mirrors/BMC.git
mirrors
BMC
BMC
main

搜索帮助