mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
support: gen-manual-lists.py base directory simplification
Buildroot doesn't use $srctree from what I could tell. Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
00cc243170
commit
aba6fa137a
@ -193,11 +193,9 @@ class Buildroot:
|
|||||||
self.base_dir = os.environ.get("TOPDIR")
|
self.base_dir = os.environ.get("TOPDIR")
|
||||||
self.output_dir = os.environ.get("O")
|
self.output_dir = os.environ.get("O")
|
||||||
self.package_dir = os.path.join(self.base_dir, self.package_dirname)
|
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.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._deprecated = self.config.get_symbol(self.deprecated_symbol)
|
||||||
|
|
||||||
self.gen_date = datetime.datetime.utcnow()
|
self.gen_date = datetime.datetime.utcnow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user