代码拉取完成,页面将自动刷新
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。