编译错误的处理及译编过程及清理

来源:互联网 发布:法国人聊天社交软件 编辑:程序博客网 时间:2024/05/11 21:41
编译错误 如果因某种不知道的原因而编译失败,下面有种简单的方法来得知编译到底错在哪里了:

# make V=99 2>&1 |tee build.log |grep -i error


有比较详细的介绍编译内容的

http://blog.csdn.net/sdvch/article/details/16343021



清理

 编译OpneWrt时你可能需要一个清洁干净的编译环境。 以下操作有利用编译工作:
清洁
 清洁trunk/ 目录,在编译过程中使用“make clean”命令即可。 此命令将删除bin目录和build_dir目录下的所有文件及文件夹。
## See CAUTION below
# make clean
 
敬告: Make sure to move your compiled OpenWrt images to another location before issuing this command since it erases the contents of the "bin" directory (where the compiled OpenWrt images live).
Dirclean
 If you want to clean in addition to the build directories also the cross-compile tools (in toolchain directory), use the 'dirclean' make, which does the same as 'clean' and also deletes 'staging_dir' and 'toolchain' contents. 'Dirclean' is your basic "Full clean" operation.
## See CAUTION below
# make dirclean
 
CAUTION: Make sure to move your compiled OpenWrt images to another location before issuing this command.
Distclean
 If complete cleaning of the build environment is required, then all it takes is 'make distclean'. It practically nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources. Making distclean means quite a lot downloading afterwards, so it should not be used lightly. 'Dirclean' is enough for most cases.
## See CAUTION below
# make distclean

0 0