summaryrefslogtreecommitdiff
path: root/meta/classes/utils.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-05-24 16:03:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-25 11:17:35 +0100
commit15ad62ab1be060d8a7cdc2d28167ea3af4cfd5d5 (patch)
treed17491fb24a05e1e958c02f33ab5882b5517b9cd /meta/classes/utils.bbclass
parent0ddf7861d36452c0fe40b4ce439a2954de507965 (diff)
downloadopenembedded-core-15ad62ab1be060d8a7cdc2d28167ea3af4cfd5d5.tar.gz
openembedded-core-15ad62ab1be060d8a7cdc2d28167ea3af4cfd5d5.tar.bz2
openembedded-core-15ad62ab1be060d8a7cdc2d28167ea3af4cfd5d5.zip
utils.bbclass: remove the unused oe_system
The following functions in meta/classes/utils.bbclass were not used by anyone, and they didn't work when I tried to use them: def oe_popen_env(d): def oe_run(d, cmd, **kwargs): def oe_popen(d, cmd, **kwargs): def oe_system(d, cmd, **kwargs): There error was: AttributeError: type object 'str' has no attribute 'getVar' We have bitbake/lib/bb/process.py to instead, so remove them. [YOCTO #2489] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/classes/utils.bbclass')
-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):
if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths):
return True
-def oe_popen_env(d):
- env = d.getVar("__oe_popen_env", False)
- if env is None:
- env = {}
- for v in d.keys():
- if d.getVarFlag(v, "export"):
- env[v] = d.getVar(v, True) or ""
- d.setVar("__oe_popen_env", env)
- return env
-
-def oe_run(d, cmd, **kwargs):
- import oe.process
- kwargs["env"] = oe_popen_env(d)
- return oe.process.run(cmd, **kwargs)
-
-def oe_popen(d, cmd, **kwargs):
- import oe.process
- kwargs["env"] = oe_popen_env(d)
- return oe.process.Popen(cmd, **kwargs)
-
-def oe_system(d, cmd, **kwargs):
- """ Popen based version of os.system. """
- if not "shell" in kwargs:
- kwargs["shell"] = True
- return oe_popen(d, cmd, **kwargs).wait()
-
oe_soinstall() {
# Purpose: Install shared library file and
# create the necessary links