diff options
-rw-r--r-- | meta/classes/binconfig.bbclass | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass index 848c74427b..7158c8c705 100644 --- a/meta/classes/binconfig.bbclass +++ b/meta/classes/binconfig.bbclass | |||
@@ -2,29 +2,29 @@ FILES_${PN}-dev += "${bindir}/*-config" | |||
2 | 2 | ||
3 | # The namespaces can clash here hence the two step replace | 3 | # The namespaces can clash here hence the two step replace |
4 | def get_binconfig_mangle(d): | 4 | def get_binconfig_mangle(d): |
5 | s = "-e ''" | 5 | s = "-e ''" |
6 | if not bb.data.inherits_class('native', d): | 6 | if not bb.data.inherits_class('native', d): |
7 | optional_quote = r"\(\"\?\)" | 7 | optional_quote = r"\(\"\?\)" |
8 | s += " -e 's:=%s${base_libdir}:=\\1OEBASELIBDIR:;'" % optional_quote | 8 | s += " -e 's:=%s${base_libdir}:=\\1OEBASELIBDIR:;'" % optional_quote |
9 | s += " -e 's:=%s${libdir}:=\\1OELIBDIR:;'" % optional_quote | 9 | s += " -e 's:=%s${libdir}:=\\1OELIBDIR:;'" % optional_quote |
10 | s += " -e 's:=%s${includedir}:=\\1OEINCDIR:;'" % optional_quote | 10 | s += " -e 's:=%s${includedir}:=\\1OEINCDIR:;'" % optional_quote |
11 | s += " -e 's:=%s${datadir}:=\\1OEDATADIR:'" % optional_quote | 11 | s += " -e 's:=%s${datadir}:=\\1OEDATADIR:'" % optional_quote |
12 | s += " -e 's:=%s${prefix}/:=\\1OEPREFIX/:'" % optional_quote | 12 | s += " -e 's:=%s${prefix}/:=\\1OEPREFIX/:'" % optional_quote |
13 | s += " -e 's:=%s${exec_prefix}/:=\\1OEEXECPREFIX/:'" % optional_quote | 13 | s += " -e 's:=%s${exec_prefix}/:=\\1OEEXECPREFIX/:'" % optional_quote |
14 | s += " -e 's:-L${libdir}:-LOELIBDIR:;'" | 14 | s += " -e 's:-L${libdir}:-LOELIBDIR:;'" |
15 | s += " -e 's:-I${includedir}:-IOEINCDIR:;'" | 15 | s += " -e 's:-I${includedir}:-IOEINCDIR:;'" |
16 | s += " -e 's:OEBASELIBDIR:${STAGING_BASELIBDIR}:;'" | 16 | s += " -e 's:OEBASELIBDIR:${STAGING_BASELIBDIR}:;'" |
17 | s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" | 17 | s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" |
18 | s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" | 18 | s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" |
19 | s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'" | 19 | s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'" |
20 | s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'" | 20 | s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'" |
21 | s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'" | 21 | s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'" |
22 | s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" | 22 | s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" |
23 | s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" | 23 | s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" |
24 | if bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d): | 24 | if bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d): |
25 | s += bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d) | 25 | s += bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d) |
26 | 26 | ||
27 | return s | 27 | return s |
28 | 28 | ||
29 | BINCONFIG_GLOB ?= "*-config" | 29 | BINCONFIG_GLOB ?= "*-config" |
30 | 30 | ||