From patchwork Mon Mar 3 22:55:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 326090 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id F1B3E2C00AC for ; Tue, 4 Mar 2014 09:55:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CA695334B6; Mon, 3 Mar 2014 22:55:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8vlsO7N55-tN; Mon, 3 Mar 2014 22:55:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 68D3A3347F; Mon, 3 Mar 2014 22:55:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7DFFC1BF9D8 for ; Mon, 3 Mar 2014 22:55:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 79E0A91405 for ; Mon, 3 Mar 2014 22:55:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jBYjaGukIhHY for ; Mon, 3 Mar 2014 22:55:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id A494791676 for ; Mon, 3 Mar 2014 22:55:12 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id z12so4082106wgg.5 for ; Mon, 03 Mar 2014 14:55:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=OJRWPJQRg7+Fu1DD/UPE93+OfQAm3DQLCkMiIC7g6z0=; b=uY+XL1IyZuk0mYVmAFdqaqt54bGKkxOT3z2hqfNIKVC3qlf3avWbR60s860Go7m4M/ g/dsGzhenOPOWIzJkyD2wA2ax1vm5rFw1bhc6WMX1qdx7HoQNBFz79kFVd3e49uo7C19 GXu5FmjyzxrmUGB14PhQn0uUou6QcIi8dKQ1K8Nyc/TkxXZd4mbxFjln3GjgHZLdbG55 Fypix16E/k29lR17iQJO/wic76wCABGrVwjDTW87mlxhHGzFmpCPOMPWuvs26w0VlwXZ G+EDjNQK4T6OAUftph+CF4ds3m5Xt/to0Xdj9UuJbSMTwe/5W78+886etikpCS1s3tJP Y0Cg== X-Received: by 10.195.13.234 with SMTP id fb10mr13813137wjd.50.1393887311080; Mon, 03 Mar 2014 14:55:11 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id dd3sm42295420wjb.9.2014.03.03.14.55.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 14:55:10 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Mon, 3 Mar 2014 23:55:05 +0100 Message-Id: <1393887305-2252-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.3.2 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH] toolchain/wrapper: rename BR_DEBUG_WRAPPER X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" The user-facing variables should be prefixed with BR2_, not BR_. Also quote the variable in the manual. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Acked-by: Arnout Vandecappelle (Essensium/Mind) --- docs/manual/customize-toolchain.txt | 2 +- toolchain/toolchain-external/ext-toolchain-wrapper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/customize-toolchain.txt b/docs/manual/customize-toolchain.txt index 4f3fe23..55a0480 100644 --- a/docs/manual/customize-toolchain.txt +++ b/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 configuration) to the external toolchain programs. In case you need to 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 diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c index 81c6ed1..db49784 100644 --- a/toolchain/toolchain-external/ext-toolchain-wrapper.c +++ b/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 2 : trace one argument per line */ - if ((env_debug = getenv("BR_DEBUG_WRAPPER"))) { + if ((env_debug = getenv("BR2_DEBUG_WRAPPER"))) { debug = atoi(env_debug); if (debug > 0) { fprintf(stderr, "Toolchain wrapper executing:");