浏览代码

toolchain/wrapper: rename BR_DEBUG_WRAPPER

The user-facing variables should be prefixed with BR2_, not BR_.

Also quote the variable in the manual.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Yann E. MORIN 11 年之前
父节点
当前提交
35c666e29b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/manual/customize-toolchain.txt
  2. 1 1
      toolchain/toolchain-external/ext-toolchain-wrapper.c

+ 1 - 1
docs/manual/customize-toolchain.txt

@@ -21,7 +21,7 @@ When using an external toolchain, Buildroot generates a wrapper program,
 that transparently passes the appropriate options (according to the
 that transparently passes the appropriate options (according to the
 configuration) to the external toolchain programs. In case you need to
 configuration) to the external toolchain programs. In case you need to
 debug this wrapper to check exactly what arguments are passed, you can
 debug this wrapper to check exactly what arguments are passed, you can
-set the environment variable BR_DEBUG_WRAPPER to either one of:
+set the environment variable +BR2_DEBUG_WRAPPER+ to either one of:
 
 
 * +0+, empty or not set: no debug
 * +0+, empty or not set: no debug
 
 

+ 1 - 1
toolchain/toolchain-external/ext-toolchain-wrapper.c

@@ -191,7 +191,7 @@ int main(int argc, char **argv)
 	 * set to 1          : trace all arguments on a single line
 	 * set to 1          : trace all arguments on a single line
 	 * set to 2          : trace one argument per line
 	 * set to 2          : trace one argument per line
 	 */
 	 */
-	if ((env_debug = getenv("BR_DEBUG_WRAPPER"))) {
+	if ((env_debug = getenv("BR2_DEBUG_WRAPPER"))) {
 		debug = atoi(env_debug);
 		debug = atoi(env_debug);
 		if (debug > 0) {
 		if (debug > 0) {
 			fprintf(stderr, "Toolchain wrapper executing:");
 			fprintf(stderr, "Toolchain wrapper executing:");