diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-18 13:08:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 12:24:50 +0100 |
commit | 73cf0335c463758379765fa5f26a4484afaca8a0 (patch) | |
tree | eed499207c71f925dfad21d1c4e58cbb1ec22d53 /meta/conf | |
parent | 7b2c67874e03bc378c6def5cf1558238134e1b61 (diff) | |
download | poky-73cf0335c463758379765fa5f26a4484afaca8a0.tar.gz |
Remove a number of unneeded import os/bb calls
The bb and os modules are always imported so having these extra import calls
are a waste of space/execution time. They also set a bad example for people
copy and pasting code so clean them up.
(From OE-Core rev: 7d674820958be3a7051ea619effe1a6061d9cbe2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/distro/include/csl-versions.inc | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/tcmode-external-sourcery.inc | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/meta/conf/distro/include/csl-versions.inc b/meta/conf/distro/include/csl-versions.inc index 0790b8ab26..e8f52d272d 100644 --- a/meta/conf/distro/include/csl-versions.inc +++ b/meta/conf/distro/include/csl-versions.inc | |||
@@ -38,7 +38,6 @@ def csl_get_gcc_version(d): | |||
38 | return version | 38 | return version |
39 | 39 | ||
40 | def csl_get_libc_version(d): | 40 | def csl_get_libc_version(d): |
41 | import os,bb | ||
42 | syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}') | 41 | syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}') |
43 | if not syspath: | 42 | if not syspath: |
44 | return 'UNKNOWN' | 43 | return 'UNKNOWN' |
@@ -54,7 +53,6 @@ def csl_get_libc_version(d): | |||
54 | return 'UNKNOWN' | 53 | return 'UNKNOWN' |
55 | 54 | ||
56 | def csl_get_kernel_version(d): | 55 | def csl_get_kernel_version(d): |
57 | import os,bb | ||
58 | syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}') | 56 | syspath = d.expand('${EXTERNAL_TOOLCHAIN}/${CSL_TARGET_SYS}') |
59 | if not syspath: | 57 | if not syspath: |
60 | return 'UNKNOWN' | 58 | return 'UNKNOWN' |
diff --git a/meta/conf/distro/include/tcmode-external-sourcery.inc b/meta/conf/distro/include/tcmode-external-sourcery.inc index 1635eec813..098c724e02 100644 --- a/meta/conf/distro/include/tcmode-external-sourcery.inc +++ b/meta/conf/distro/include/tcmode-external-sourcery.inc | |||
@@ -104,7 +104,6 @@ addhandler toolchain_setup | |||
104 | 104 | ||
105 | def populate_toolchain_links(d): | 105 | def populate_toolchain_links(d): |
106 | import errno | 106 | import errno |
107 | import os | ||
108 | from glob import glob | 107 | from glob import glob |
109 | 108 | ||
110 | d = d.createCopy() | 109 | d = d.createCopy() |