summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-11 17:33:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 10:24:50 +0100
commitbfd279de3275abbfaf3e630383ec244131e0375f (patch)
tree0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/classes/autotools.bbclass
parent99203edda6f0b09d817454d656c100b7a8806b18 (diff)
downloadpoky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass38
1 files changed, 19 insertions, 19 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 02b984db63..4c4bf8775d 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -1,23 +1,23 @@
1def autotools_dep_prepend(d): 1def autotools_dep_prepend(d):
2 if d.getVar('INHIBIT_AUTOTOOLS_DEPS', True): 2 if d.getVar('INHIBIT_AUTOTOOLS_DEPS', True):
3 return '' 3 return ''
4 4
5 pn = d.getVar('PN', True) 5 pn = d.getVar('PN', True)
6 deps = '' 6 deps = ''
7 7
8 if pn in ['autoconf-native', 'automake-native', 'help2man-native']: 8 if pn in ['autoconf-native', 'automake-native', 'help2man-native']:
9 return deps 9 return deps
10 deps += 'autoconf-native automake-native ' 10 deps += 'autoconf-native automake-native '
11 11
12 if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"): 12 if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
13 deps += 'libtool-native ' 13 deps += 'libtool-native '
14 if not bb.data.inherits_class('native', d) \ 14 if not bb.data.inherits_class('native', d) \
15 and not bb.data.inherits_class('nativesdk', d) \ 15 and not bb.data.inherits_class('nativesdk', d) \
16 and not bb.data.inherits_class('cross', d) \ 16 and not bb.data.inherits_class('cross', d) \
17 and not d.getVar('INHIBIT_DEFAULT_DEPS', True): 17 and not d.getVar('INHIBIT_DEFAULT_DEPS', True):
18 deps += 'libtool-cross ' 18 deps += 'libtool-cross '
19 19
20 return deps + 'gnu-config-native ' 20 return deps + 'gnu-config-native '
21 21
22EXTRA_OEMAKE = "" 22EXTRA_OEMAKE = ""
23 23
@@ -35,15 +35,15 @@ EXTRA_AUTORECONF = "--exclude=autopoint"
35export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" 35export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}"
36 36
37def autotools_set_crosscompiling(d): 37def autotools_set_crosscompiling(d):
38 if not bb.data.inherits_class('native', d): 38 if not bb.data.inherits_class('native', d):
39 return " cross_compiling=yes" 39 return " cross_compiling=yes"
40 return "" 40 return ""
41 41
42def append_libtool_sysroot(d): 42def append_libtool_sysroot(d):
43 # Only supply libtool sysroot option for non-native packages 43 # Only supply libtool sysroot option for non-native packages
44 if not bb.data.inherits_class('native', d): 44 if not bb.data.inherits_class('native', d):
45 return '--with-libtool-sysroot=${STAGING_DIR_HOST}' 45 return '--with-libtool-sysroot=${STAGING_DIR_HOST}'
46 return "" 46 return ""
47 47
48# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}" 48# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"
49 49