From aba6fa137a1b0df876c235e63804ef81f76c5d5b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 10 Jun 2015 15:05:10 +0200 Subject: [PATCH] support: gen-manual-lists.py base directory simplification Buildroot doesn't use $srctree from what I could tell. Signed-off-by: Ulf Magnusson Signed-off-by: Thomas Petazzoni --- 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 ec59030d0c..2acac2c454 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.30.2