openwrt 编译命令

1. make V=999 -j x;   x是你的电脑 线程数-1;

2. 修改了 target/linux目录的文件,再次编译命令是  make clean;   make V=99 -j4

3.调试linux代码一般在build_dir/linux-XXXXlinux-2.6.32 目录修改, 再次编译命令是 make target/install

4.调试软件包package/XXXX;  make menuconfig出现缓存包​​列表和配置,删除rm  -rf   tmp目录,之后再make menuconfig

      Menuconfig appears to cache package lists and (especially) profiles. Try deleting the <buildroot_dir>/tmp directory and then running make menuconfig again.

5.查找某个软件包的 版本信息 cat package/feeds/packages/<package>/Makefile

6. 清除Clean small part

           In more time, you may not want to clean so many objects, then you can use some of the commands below to do it.

          Clean linux objects.
          make target/linux/clean

          Clean package base-files objects.
          make package/base-files/clean

          Clean luci.
          make package/feeds/luci/luci/clean



你可能感兴趣的:(openwrt 编译命令)