Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Magnusson <ulfalizer@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] support: gen-manual-lists.py base directory simplification
Date: Wed, 10 Jun 2015 15:05:10 +0200	[thread overview]
Message-ID: <1433941511-15596-2-git-send-email-ulfalizer@gmail.com> (raw)
In-Reply-To: <1433941511-15596-1-git-send-email-ulfalizer@gmail.com>

Buildroot doesn't use $srctree from what I could tell.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
 support/scripts/gen-manual-lists.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py
index ec59030..2acac2c 100644
--- a/support/scripts/gen-manual-lists.py
+++ b/support/scripts/gen-manual-lists.py
@@ -193,11 +193,9 @@ class Buildroot:
         self.base_dir = os.environ.get("TOPDIR")
         self.output_dir = os.environ.get("O")
         self.package_dir = os.path.join(self.base_dir, self.package_dirname)
-        # The kconfiglib requires an environment variable named "srctree" to
-        # load the configuration, so set it.
-        os.environ.update({'srctree': self.base_dir})
         self.config = kconfiglib.Config(os.path.join(self.base_dir,
-                                                     self.root_config))
+                                                     self.root_config),
+                                        self.base_dir)
         self._deprecated = self.config.get_symbol(self.deprecated_symbol)
 
         self.gen_date = datetime.datetime.utcnow()
-- 
2.1.4

  reply	other threads:[~2015-06-10 13:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 13:05 [Buildroot] [PATCH 1/3] support: update Kconfiglib to the latest version Ulf Magnusson
2015-06-10 13:05 ` Ulf Magnusson [this message]
2015-06-11 20:12   ` [Buildroot] [PATCH 2/3] support: gen-manual-lists.py base directory simplification Thomas Petazzoni
2015-06-10 13:05 ` [Buildroot] [PATCH 3/3] support: get prompts via official Kconfiglib APIs Ulf Magnusson
2015-06-11 20:12   ` Thomas Petazzoni
2015-06-10 13:15 ` [Buildroot] [PATCH 1/3] support: update Kconfiglib to the latest version Baruch Siach
2015-06-10 13:30   ` Ulf Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433941511-15596-2-git-send-email-ulfalizer@gmail.com \
    --to=ulfalizer@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox