“make -jn V=m”是什么意思?

“make -jn V=m”是什么意思?

我不明白编译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) 
    

参考:

相关内容