summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcltk/tcl_8.6.7.bb
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2017-10-11 02:07:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:33:21 +0000
commit328b89d84a99e7a6d3ac74778cdd117ed9d47415 (patch)
tree30ad3887babfe2d692aa4b7852b13303c64bf383 /meta/recipes-devtools/tcltk/tcl_8.6.7.bb
parent8cae1ede30e6341f2165f009e008f9d2049e46be (diff)
downloadpoky-328b89d84a99e7a6d3ac74778cdd117ed9d47415.tar.gz
tcl: remove host path from tclConfig.sh
The tclConfig.sh is also used by other packages (such as expect) for cross-compiling, the host path from it can't be removed directly in the do_install step. With PACKAGE_PREPROCESS_FUNCS to remove host path and avoid the crossscripts installed to target. (From OE-Core rev: ced5618e7b3459fdd96f448ccdb55b5ced6d8214) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl_8.6.7.bb')
-rw-r--r--meta/recipes-devtools/tcltk/tcl_8.6.7.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.7.bb b/meta/recipes-devtools/tcltk/tcl_8.6.7.bb
index d00d2dc62b..dac73be6e7 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.7.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.7.bb
@@ -86,3 +86,16 @@ BINCONFIG_GLOB = "*Config.sh"
86 86
87# Fix the path in sstate 87# Fix the path in sstate
88SSTATE_SCAN_FILES += "*Config.sh" 88SSTATE_SCAN_FILES += "*Config.sh"
89
90# Cleanup host path from ${libdir}/tclConfig.sh and remove the
91# ${bindir_crossscripts}/tclConfig.sh from target
92PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess"
93tcl_package_preprocess() {
94 sed -i -e "s;${DEBUG_PREFIX_MAP};;g" \
95 -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \
96 -e "s;${STAGING_INCDIR};${includedir};g" \
97 -e "s;--sysroot=${RECIPE_SYSROOT};;g" \
98 ${PKGD}${libdir}/tclConfig.sh
99
100 rm -f ${PKGD}${bindir_crossscripts}/tclConfig.sh
101}