本篇博客主要参考了以下内容:
http://www.cnblogs.com/sammei/p/3968916.html
官方源下载速度太度,我从github上clone了openwrt的代码仓库。
git clone https://github.com/openwrt-mirror/openwrt.git

上图是openwrt目录结构,其中第一行是原始目录,第二行是编译过程中生成的目录。各目录的作用是:
$(eval $(call HostBuild))
,表示编译这个工具是为了在主机上使用的。staging_dir - 最终安装目录。tools, toolchain被安装到这里,rootfs也会放到这里。
原文:https://www.cnblogs.com/fanjinpo/p/9782368.html