全志SDK编译问题解决二:build uboot only

SDK在lichee部分编译内核会遇到错误:

./build.sh -p a13_nuclear -m uboot编译无法通过,提示找不到工具链

解决办法是在buildroot/scripts/common.sh文件中,将:

268 elif [ "$MODULE" = kernel ]; then
269     export PATH=${BR_OUT_DIR}/external-toolchain/bin:$PATH                                                 
270     cd ${KERN_DIR} && ./build.sh -p ${PLATFORM}
271     regen_rootfs
272     gen_output_${PLATFORM}
273 elif [ "$MODULE" = "uboot" ]; then
274     cd ${U_BOOT_DIR} && ./build.sh -p sun5i
275 else

修改为:

268 elif [ "$MODULE" = kernel ]; then
269     export PATH=${BR_OUT_DIR}/external-toolchain/bin:$PATH
270     cd ${KERN_DIR} && ./build.sh -p ${PLATFORM}
271     regen_rootfs
272     gen_output_${PLATFORM}
273 elif [ "$MODULE" = "uboot" ]; then
274     export PATH=${BR_OUT_DIR}/external-toolchain/bin:$PATH                                                                      
275     cd ${U_BOOT_DIR} && ./build.sh -p sun5i
276 else

你可能感兴趣的:(全志SDK编译问题解决二:build uboot only)