1 Star 0 Fork 0

altas-200-evl/evl-linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
luochenglcs 提交于 2021-08-18 08:55 . adapt evl
#!/bin/sh
usage()
{
echo "$0 board_type"
echo "Example: "
echo " $0 d01|d02|d03|d05|d06"
exit 1
}
if [ $# != 1 ];then
usage
fi
export board_type=$1
gen_config()
{
case $board_type in
"d01")
make hisi_defconfig
;;
*)
./scripts/kconfig/merge_config.sh -m arch/arm64/configs/defconfig arch/arm64/configs/plinth-config
;;
esac
mv -f .config .merged.config
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KCONFIG_ALLCONFIG=.merged.config alldefconfig
}
build_image()
{
if [ "$board_type" = "d01" ];then
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make -j14 zImage
make hip04-d01.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/hip04-d01.dtb >.kernel
else
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make -j64
fi
}
build_dtb()
{
echo "Building dtb ..."
case $board_type in
"d02")
make hisilicon/hip05-d02.dtb
;;
"d03")
make hisilicon/hip06-d03.dtb
;;
"d05")
make hisilicon/hip07-d05.dtb
;;
*)
echo "Unsupported dtb for board $board_type"
;;
esac
}
gen_config
build_image
build_dtb
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/altas-200-evl/evl-linux.git
git@gitee.com:altas-200-evl/evl-linux.git
altas-200-evl
evl-linux
evl-linux
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385