summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/utils.bbclass26
1 files changed, 0 insertions, 26 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index fde8f446ad..f8b09b423c 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -58,32 +58,6 @@ def is_machine_specific(d):
58 if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths): 58 if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths):
59 return True 59 return True
60 60
61def oe_popen_env(d):
62 env = d.getVar("__oe_popen_env", False)
63 if env is None:
64 env = {}
65 for v in d.keys():
66 if d.getVarFlag(v, "export"):
67 env[v] = d.getVar(v, True) or ""
68 d.setVar("__oe_popen_env", env)
69 return env
70
71def oe_run(d, cmd, **kwargs):
72 import oe.process
73 kwargs["env"] = oe_popen_env(d)
74 return oe.process.run(cmd, **kwargs)
75
76def oe_popen(d, cmd, **kwargs):
77 import oe.process
78 kwargs["env"] = oe_popen_env(d)
79 return oe.process.Popen(cmd, **kwargs)
80
81def oe_system(d, cmd, **kwargs):
82 """ Popen based version of os.system. """
83 if not "shell" in kwargs:
84 kwargs["shell"] = True
85 return oe_popen(d, cmd, **kwargs).wait()
86
87oe_soinstall() { 61oe_soinstall() {
88 # Purpose: Install shared library file and 62 # Purpose: Install shared library file and
89 # create the necessary links 63 # create the necessary links