]> code.ossystems Code Review - openembedded-core.git/commit
binconfig.bbclass: fix get_binconfig_mangle()
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 13 Feb 2017 06:33:31 +0000 (22:33 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2017 20:29:12 +0000 (12:29 -0800)
commit42e4e36de37b8e06a2ff56172d04d3ffeccfbfae
tree36fd04e3dd3db320b350579a9b9bddf9ce5f5cae
parent7f6b4359e1f2d9d748d23305a2af73c0efba5928
binconfig.bbclass: fix get_binconfig_mangle()

The command was:
s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"

The STAGING_LIBDIR and STAGING_INCDIR now contains WORKDIR, so the
result would be incorrect like:
TCL_INCLUDE_SPEC='-IFIXMESTAGINGDIRTARGET/usr/include/recipe-sysroot/usr/include/tcl8.6'

Note, the "/usr/include/recipe-sysroot" is not needed. Move the last two
sed commands ahead will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/binconfig.bbclass