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

Tom*_*mas 3 command-line compiling make

我不明白编译 openWRT 的命令之一。

make -j N V=m编译openWRT时命令的含义是什么?

例如,make -j8 V=99

and*_*.46 6

make此处可用的 2 个选项是:

  • -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.
    
    Run Code Online (Sandbox Code Playgroud)
  • V=99:此选项控制您在此make过程中将接触到的详细程度和类型。这不是特定于make自身,而是特定于OpenWrtmakefile。在源代码中查看创建include/verbose.mk以下链接的文件:

    - Verbose = V
    - Verbosity level 1 = w (warnings/errors only)
    - Verbosity level 99 = s (This gives stdout+stderr) 
    
    Run Code Online (Sandbox Code Playgroud)

参考: