我不明白编译openWRT的其中一个命令。
make -j N V=m
编译openWRT时命令是什么意思?
举个例子,make -j8 V=99
。
答案1
这里可用的两个选项make
是:
-j8
:此选项指定要同时运行的作业数。来自make
手册页:-j [jobs], --jobs[=jobs] Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given with- out an argument, make will not limit the number of jobs that can run simultaneously.
V=99
:此选项控制您在过程中将接触到的详细程度和类型make
。这不是针对make
其本身而是针对makefile。在源代码中查看以下链接所在的OpenWrt
文件:include/verbose.mk
- Verbose = V - Verbosity level 1 = w (warnings/errors only) - Verbosity level 99 = s (This gives stdout+stderr)
参考: